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