程序编译成功,但下载失败

发布于 2021-03-13 17:25:02    浏览:314
0013431:CRITICAL:__main__:program_page(0x1000) error: 1
Traceback (most recent call last):
  File "pyocd\__main__.py", line 362, in run
  File "pyocd\__main__.py", line 527, in do_flash
  File "pyocd\flash\file_programmer.py", line 158, in program
  File "pyocd\flash\loader.py", line 168, in commit
  File "pyocd\flash\builder.py", line 470, in program
  File "pyocd\flash\builder.py", line 908, in _sector_erase_program_double_buffer
pyocd.core.exceptions.FlashProgramFailure: program_page(0x1000) error: 1
[=======================

执行完毕, 耗时:15359ms.

查看更多

flashman2002
flashman2002 2021-03-16
This guy hasn't written anything yet

结果显示表明是flash的页擦除出了问题,应该是你的PyOCD的配置文件中有些flash的配置有问题所致,请先检查配置文件。

3 个回答
LHG
LHG 2021-05-20
This guy hasn't written anything yet

问题解决的吗,我也遇到相同问题

木子鱼
木子鱼 2021-06-29
This guy hasn't written anything yet
done!

开始下载程序:2021-06-29 18:08:58
D:\ProgramData\RT-ThreadStudio>cd /d D:\ProgramData\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\RealThread\PyOCD\0.1.1 
D:\ProgramData\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\RealThread\PyOCD\0.1.1>pyocd.exe flash --target=AT32F407VGT7 --erase=auto  --frequency=1000000 D:\ProgramData\RT-ThreadStudio\workspace\AT407\Debug\rtthread.bin 
[---|---|---|---|---|---|---|---|---|----]
0004291:CRITICAL:__main__:program_page(0x0) error: 1
Traceback (most recent call last):
  File "pyocd\__main__.py", line 362, in run
  File "pyocd\__main__.py", line 527, in do_flash
  File "pyocd\flash\file_programmer.py", line 158, in program
  File "pyocd\flash\loader.py", line 168, in commit
  File "pyocd\flash\builder.py", line 470, in program
  File "pyocd\flash\builder.py", line 908, in _sector_erase_program_double_buffer
pyocd.core.exceptions.FlashProgramFailure: program_page(0x0) error: 1
[===============
执行完毕, 耗时:5270ms.

今天测试:RTT-Studio + 雅特力AT-START-F407 板子,使用 基于开发板创建工程,BSP:1.0.0;
测试发现,可以编译成功,第一次可以成功下载程序到板子;
但是第二次编译成功后,再点下载按钮,就会出现上面的报错;大神们 怎么破呀?

撰写答案

请登录后再发布答案,点击登录
关注者
0
被浏览
314

发布
问题

分享
好友

手机
浏览

扫码手机浏览