illegal instruction after reset

- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello all,
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,
Raju


- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
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.
Peter

- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
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.
Thanks all,
Raju
