I am using the MPC5566 Demo board from freescale. When I am debugging, I can write and read external memory. When I disconnect the debugger and reset the board, the MPC5566 appears to stay in reset.
If I do not link any variables to external memory(i.e. 0x20000000), I have no problems when I disconnect the debugger.
Is the debugger doing something to the chip selects or MMU that I need to do in my application code?
Thanks in advance,
Matt
The debugger will be running an initialisation script which sets up memory so the program code can be downloaded, and also sets up basic things like cpu clocks, disabling watchdog etc.
It may also be setting up chip select etc for the external sram.
You should find the scipt file being used in the project settings on one of the debugger pages.
Once you have located the file have a look through it to see what it is setting up for you.
Cheers
Martin