新手上路
- 积分
- 44
- 金钱
- 44
- 注册时间
- 2017-2-4
- 在线时间
- 6 小时
|
20金钱
闲鱼上淘了一些拆机片子 STM32F401CCU6,自己做了最小系统PCB用于验证。
焊接好后,使用 STM32CubeProg 尝试下载遇到如下错误。

完整报错日志如下:
- 11:45:18 : ST-LINK SN : 38FF75064E57343538382043
- 11:45:18 : ST-LINK FW : V2J34S7
- 11:45:18 : Voltage : 3.01V
- 11:45:18 : SWD freq : 4000 KHz
- 11:45:18 : Connect mode: Normal
- 11:45:18 : Reset mode : Software reset
- 11:45:18 : Device ID : 0x423
- 11:45:18 : UPLOADING OPTION BYTES DATA ...
- 11:45:18 : Bank : 0x00
- 11:45:18 : Address : 0x40023c14
- 11:45:18 : Size : 8 Bytes
- 11:45:18 : UPLOADING ...
- 11:45:18 : Size : 1024 Bytes
- 11:45:18 : Address : 0x8000000
- 11:45:18 : Read progress:
- 11:45:18 : Error: Data read failed
复制代码 此时,状态是 STM32CubeProg 已经成功连接到了板子上,识别到 STM32 MCU,但是无法读取 FLASH。
若继续烧写 Flash 报错如下:

完整日志如下:
- 11:45:18 : ST-LINK SN : 38FF75064E57343538382043
- 11:45:18 : ST-LINK FW : V2J34S7
- 11:45:18 : Voltage : 3.01V
- 11:45:18 : SWD freq : 4000 KHz
- 11:45:18 : Connect mode: Normal
- 11:45:18 : Reset mode : Software reset
- 11:45:18 : Device ID : 0x423
- 11:45:18 : UPLOADING OPTION BYTES DATA ...
- 11:45:18 : Bank : 0x00
- 11:45:18 : Address : 0x40023c14
- 11:45:18 : Size : 8 Bytes
- 11:45:18 : UPLOADING ...
- 11:45:18 : Size : 1024 Bytes
- 11:45:18 : Address : 0x8000000
- 11:45:18 : Read progress:
- 11:45:18 : Error: Data read failed
- 11:47:53 : Memory Programming ...
- 11:47:53 : Opening and parsing file: stm32f401ccu6.bin
- 11:47:53 : File : stm32f401ccu6.bin
- 11:47:53 : Size : 4668 Bytes
- 11:47:53 : Address : 0x08000000
- 11:47:53 : Erasing memory corresponding to segment 0:
- 11:47:54 : Erasing internal memory sector 0
- 11:47:54 : Error: failed to erase memory
- 11:47:54 : Error: failed to erase memory
- 11:47:54 : RUNNING Program ...
- 11:47:54 : Address: : 0x08000000
- 11:47:54 : Warning: The core is locked up
- 11:47:54 : Start operation achieved successfully
复制代码 提示说 MCU Core locked up,请教论坛大佬有什么解锁方法。
PS:我手上目前只有ST-LINKv2 + 最小系统板仅有SW下载口,没有JTAG下载口。
|
最佳答案
查看完整内容[请看2#楼]
我已经搞定了,昨天这个帖子审核太久了。
解决方法是在 STM32CubeProg 工具中直接解锁就可以了。
|