问题描述

如图,在使用J-Flash烧录GD32F303时,无法烧录,报错:

- ERROR: Programming failed @ address 0x08000000 (program error)
 - End of flash programming
 - ERROR: Program failed
 - Start of restoring
 - ERROR: Timeout while restoring target, RAMCode did not respond in time (PC = 0x20000340, XPSR = 0x21000000, SP = 0x20000608)!
 - ERROR: Failed to restore target. RAMCode never stops
 - End of restoring
 - ERROR: Failed to program and verify target 

在这里插入图片描述

解决办法

打开J-Link STM32 Unlock
在这里插入图片描述
打开后,如下,输入3,为什么输入3,因为GD32F303类比为STM32F103,虽然内核不同,但Flash大小相同。
出现如下打印则说明解锁成功
在这里插入图片描述
重新使用J-Flash即可成功烧录!
在这里插入图片描述

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐