We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am executing the following code part (KEIL development environment, Microcontroller ADuC7020). if I do insert the "case: 1" structure in func1(), the debugger does not start. If I delete the "case: 1" structure in func1() the code does execute. What is the problem ("....." means that there are other code parts on this place)
regards Samuel
main() { ....... var1 = 1; ....... func1(); ....... }
func1() { switch(var1) ............. case 1: ............. break; ...... }
main()'s var1 is not in scope while func1() executes.
Hello Dan Thank you for your reply And what do recommend to solve this problem regards Samuel
He probably recommends that you post a bit more of the code, since the existing code shows too little information for us to have any idea.
Note that some processors may fail to boot in case they have too much initialized data, and have the watchdog activated before you reach main().
Some processors may fail because of stack space availability while uncompressing initialized data.
Use of functions that requires heap may also make the program fail before reaching main().
What have you done to figure out how fast you lose the processor?