hc32f072,用 jlink下载hex文件失败,pc值错误:
ERROR: PC of target system has unexpected value after programming sector. (PC = 0xFFFFFFFE)!
请问这大概是什么原因呢?谢谢!
下面是J-Flash 输出的调试信息:
- Connected successfully
Erasing chip ...
- 256 sectors, 1 range, 0x8000000 - 0x801FFFF
- Start of determining flash info (Bank 0 @ 0x08000000)
- End of determining flash info
- Flash bank info:
- 256 * 512 bytes @ 0x08000000
- Start of preparing flash programming
- End of preparing flash programming
- Start of determining dirty areas in flash cache
- End of determining dirty areas
- CPU speed could not be measured.
- Start of erasing chip
- End of erasing chip
- Start of restoring
- End of restoring
- Erase operation completed successfully - Completed after 0.195 sec
Programming target (20052 bytes, 1 range) ...
- Checking if selected data fits into selected flash sectors.
- Start of determining flash info (Bank 0 @ 0x08000000)
- End of determining flash info
- Flash bank info:
- 256 * 512 bytes @ 0x08000000
- Start of preparing flash programming
- End of preparing flash programming
- Start of determining dirty areas in flash cache
- End of determining dirty areas
- CPU speed could not be measured.
- Start of flash programming
- Programming range 0x08000000 - 0x08004FFF (040 Sectors, 20 KB)
- ERROR: PC of target system has unexpected value after programming sector. (PC = 0xFFFFFFFE)!
---------------------------------------------------------------------- Registers -------------------------------------------------------------------------------------
PC = FFFFFFFE
Current: R0 = 0000001E, R1 = 000000E1, R2 = 40002000, R3 = 08000000
R4 = 000000A0, R5 = 40000F80, R6 = 40020000, R7 = 00000000
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- End of flash programming
- ERROR: Program failed
- ERROR: Failed to program target
Disconnecting ...
- Disconnected
|