I'm using MPC5602P on CW2.9. I tried to write simple application for blinking LED with reset instruction in sector 0x00020000. and I changed the .lcf file accordingly. Here are my changes.
but once the program executes with reset instruction executes it is showing illegal instruction and the program counter changed to 0x00000060 the corresponding screen shot is shared.
Is there any settings I need to do for executing the application,
Thanks in advance,
This is quite obvious, you have to have data in that location in your .map file otherwise the flash will show erased status.
At least for PE, which always erase flash before load.
I got it, What am I thinking is reset vector we edit in our user application is just for updating the mot file and can not be used for debugging. Once the reset happens MCU will go to its default vector location 0x00000000. So it is showing the illegal instruction. If I change only reset vector location from 0x00020000 to 0x00000000 (just for debugging) then it will work as earlier even after reset.