Hello there!
The problem I'm facing is quite simple: when I try to debug my program it doesn't jump to the main function. All I can see in the debug window after the code is loaded into the uC is STARTUP.A51 assembly code. It is stuck there.
This problem has been happening with me quite often and although I've been able fix it before I do not really know the cause of it. Also this time I can't fix it so far.
I've googled it and couldnt find anything similar. So my question is: does anyone have faced this problem before? Do you guys know the most common causes of it? I just want to know what I am missing here, what I am doing wrong.
I didnt post any part of the code because I dont know which part would be useful to show. If you need to see any part of the code just let me know!
Thanks!
If you have too many variables being initialized in the declaration the uC will take too long do initialize them and will not turn off the watchdog in time. I solved it by moving the initialization of the variables to after the declaration. 1) correct, this is a possible reason for the OPs problem 2)very few derivatives turn the watchdog on by default, the only ones I know of are the SILabs 'deviates' (F3x-up). 3) the right solution is to turn the watchdog off in startup.a51, not starting with a bunch of var = val; in main.
Erik