打印
[技术问答]

hc32f072用 jlink下载hex文件失败,pc值错误

[复制链接]
780|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
cpl_1|  楼主 | 2020-12-31 23:28 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
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



图片1.png (20.82 KB )

图片1.png

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

24

主题

278

帖子

1

粉丝