I am using Freescale MPC5566 Evaluation board with CodeWarrior 5.9.0. I am quite new to this board and I am trying to execute a code from the MPC internal Flash. I use P&E Micro for debugging purposes.
I opened a new 5566 project from CW. It automatically generated all the configuration files. I did not change any of those. I only modified the main.c file by initializing a GPIO. I use the GPIO to toggle a user LED on the board. I compiled the code for RAM and executed it out of RAM using the debugger. Everything is fine and the LED is toggling.
Then I compiled the code for internal Flash and executed it using the debugger. Here also everything is fine and the LED is toggling, though the frequency is a little less. I expected the MPC to work by itself and toggle the LED (as code is still in Flash) when I remove the debugger. But, nothing happens.
I believe that some initialization is done by the debugger for the code to execute properly from the Flash. Where can I find this initialization code? How can I make the MCU boot by itself?
--------------------------------------- Posted through