打印
[其他ST产品]

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

[复制链接]
543|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
地瓜patch|  楼主 | 2025-4-23 17:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 地瓜patch 于 2025-4-24 15:55 编辑

问题一、以下文字是例程应用指导中的一段,将程序下载到外部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.


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

使用特权

评论回复
沙发
onlycook| | 2025-5-7 12:55 | 只看该作者
扩展存储容量,满足大数据量需求。

使用特权

评论回复
板凳
内政奇才| | 2025-5-7 12:56 | 只看该作者
可以降低成本与功耗。

使用特权

评论回复
地板
海滨消消| | 2025-5-7 12:56 | 只看该作者
将代码下载到外部Flash可以支持动态更新,简化OTA流程。

使用特权

评论回复
5
地瓜patch|  楼主 | 2025-5-7 18:20 | 只看该作者
海滨消消 发表于 2025-5-7 12:56
将代码下载到外部Flash可以支持动态更新,简化OTA流程。

内部flash不是也具有同样功能么?

使用特权

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

本版积分规则

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

1610

主题

14256

帖子

28

粉丝