我写一个引导程序,需要计算校验和。
通过 stm32cubeide 的 Srecord 工具获取 CRC。
Srecord 按照以下脚本运行:
# srec_cat command file: srec_crc_dump_to_file.txt #=============================================== #-disable-sequence-warning #Input file PLK.hex -Intel #Fill hole with 0xFF -fill 0xFF 0x8000000 0x08040000 #CRC Algorithm at given address -STM32 0x08040000 #-crop 0x08040000 0x08040004 -Output_Block_Size=16 #Produce output -o PLK_SRECORD.hex -Intel 导致问题, srec_cat: PLK.hex: 47492: warning: The data presented for STM32 calculation has at least one hole in it.
|