I am using WindRiver JTAG Debugger to debug my code. Whenever I run the code with Debugger connected, Code works correctly but If I disconnect it, It fails to even Start!
Has anyone faced such kind of Problems?
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
My debugger for a Coldfire does some initialization of the SDRAM controller and other low-level registers that is normally done by the bootloader. Check to see how your debugger initializes the chip.
Here are the reasons I have seen this case occur:
Generally, that problem is caused by the program failing to start properly from a reset when run without the debugger. For instance, with the Rowley CrossWorks ARM tools, STARTUP_FROM_RESET has to be defined for the pre-processor.
Perhaps you are using the Debug version when compiling with the JTAG device plugged in, but using Release when compiling without it? Also, if you are using different debug and release versions make sure you have optimisations set to the same for both variants.