打印
[其他ST产品]

很多例程将代码下载到外部flash,目的是什么?

[复制链接]
69|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
地瓜patch|  楼主 | 2025-4-23 17:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
问题一、以下文字是例程应用指导中的一段,将程序下载到外部flash地址为0x7000'0000。为什么要下到外部flsash呢,这个代码不大编译完成后34kB。

Next, this program can be run in boot from flash mode. This is done by following the instructions below:

- Resort to CubeProgrammer to add a header to the generated binary Project.bin with the following command
   - *STM32_SigningTool_CLI.exe -bin Project.bin -nk -of 0x80000000 -t fsbl -o Project-trusted.bin -hv 2.3 -dump Project-trusted.bin*
   - The resulting binary is Project-trusted.bin.
- Next, in resorting again to CubeProgrammer, load the binary and its header (Project-trusted.bin) in DK board external Flash at address 0x7000'0000.
- Set the boot mode in boot from external Flash (BOOT0 switch position is 1-2 and BOOT1 switch position is 1-2).
- Press the reset button. The code then executes in boot from external Flash mode.


问题二、进行这一步给bing文件加个头的目的是什么?加这个头有啥作用? *STM32_SigningTool_CLI.exe -bin Project.bin -nk -of 0x80000000 -t fsbl -o Project-trusted.bin -hv 2.3 -dump Project-trusted.bin*

使用特权

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

本版积分规则

个人签名:出一块TI-PLABS-AMP-EVM

1479

主题

13825

帖子

27

粉丝