我正在尝试使用串行引导加载程序通过
STM32CubeProgrammer 将安全固件映像加载到 STM32L5。我可以在引导加载程序模式下成功连接到
电路板并执行全芯片擦除,但尝试下载图像(.hex 或 .out)会导致错误:
- 10:20:33 : Memory Programming ...
- 10:20:33 : Opening and parsing file: project.out
- 10:20:33 : File : project.out
- 10:20:33 : Size : 256 KBytes
- 10:20:33 : Address : 0x0C000000
- 10:20:33 : Erasing memory corresponding to segment 0:
- 10:20:33 : Not flash Memory : No erase done
- 10:20:33 : Download in Progress:
- 10:20:34 : Response received from device: NACK
- 10:20:34 : Error: Write address not acknowledged: 0xC000000
- 10:20:34 : Error: failed to download Segment[0]
- 10:20:34 : Error: failed to download the File
在此设备上启用了 TrustZone (FLASH_OPTR->TZEN=1)。读取 0x0BF97FFE 会返回引导加载程序 ID 0x92。
有没有办法通过串行引导加载程序应用安全映像?
谢谢!
更新:
我尝试将我的项目转换为原始二进制文件并将其上传到地址 0x0800'0000。上传报告成功,但验证失败,回读内存显示未编程。