Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Raj Nambiar
12/01/08 01:19
Read: 888 times

#160445 - stack and preview..
Responding to: Maarten Brock's previous message
"Btw. You did not understand what "...insert code here" means now did you? And you probably didn't look at the preview either, right?"

You ar right. I was a bit confused. When I pressed the button, I was expecing a pop-up window that was going to ask me for the .c or txt file. But then I found the 'insert your code here' line. That made me think that the whole think will be converted to html or the code part might be parsed separately and formatted into an html table or something. Since I didn'y find any html tags that could do it, I assumed that it would be inserted here. And preview button : I am not sure that I saw it. But then it must be my mistake. But then I am worried that, if I do it again, I might make the same mistake!!

Regarding the suggestions, thanks to every one. It is not the watchdog. It is definitely something to do with stack, since I can make the problem disappear by playing with the variables- like moving some to xdata, explicitly declaring variables with location etc.

I am using keil. I can change the start up code. But in startup code, they define stack for reentrant functions only!! I am a bit confused. Why is a regular stack location not initialised? In assembly, we always do it.
How do I know where variables are initialised? Is it there in a map file?
Is it better to explicitly place variables in specific locations, after ceating the map, like the way we do in assembly? We face this issue only in database oriented projects, where there are lot of pointers to strings. How do I know the stack usage of functions? Do functions use stack to pass the values? Like, does printf call use stack to pass the string? That will be lot of pushes and pops. Please guide...


List of 21 messages in thread
Program hangs at one point - 8051F340      Raj Nambiar      11/28/08 13:23      
   Assembly window      Raj Nambiar      11/28/08 13:35      
   hyper terminal interface      Raj Nambiar      11/28/08 13:37      
      Stack size?      Per Westermark      11/28/08 13:59      
         Stack size      Raj Nambiar      11/29/08 08:27      
            Stack Management      Michael Karas      11/29/08 11:19      
   Watchdog      Maarten Brock      11/29/08 15:18      
      stack and preview..      Raj Nambiar      12/01/08 01:19      
         Limited stack      Per Westermark      12/01/08 04:04      
      Where is the UART ISR?      Tsuneo Chinzei      12/01/08 11:36      
         ISR for UART      Raj Nambiar      12/02/08 03:22      
            ISR for UART?      Tsuneo Chinzei      12/02/08 04:16      
               why "TI0=1;" is required      Andy Neil      12/02/08 05:01      
            No, it isn't      Andy Neil      12/02/08 04:58      
               Solved - I guess      Raj Nambiar      12/10/08 01:11      
                  'polling' is NOT "standard C"      Erik Malund      12/10/08 05:34      
                     You are right Erik..      Raj Nambiar      12/11/08 00:42      
      Thought I will thank you individually..      Raj Nambiar      12/19/08 23:12      
   Disable watchdog      Jack Peacock      12/02/08 09:45      
      and in Keil it is:        Erik Malund      12/02/08 09:55      
         Status : WDT disabling in the status worked      Raj Nambiar      12/19/08 23:04      

Back to Subject List