如果需要文件部分内容截取,可以使用参数-crop。 copy srec_cat.exe stm32.hex -intel -crop 0x08000000 0x08003FFF -o stm32_app.hex -intel 将stm32.hex 文件中 0x08000000 - 0x08003FFF 中有效的数据生成一个新的文件 stm32_app.hex,如果代码结束地址是 0x0800 1FFF,那么新生成的文件代码范围是 0x0800...
这里我们用它来获取bin文件的大小,以便为-crop和-crc32-b-e选项提供正确的范围。 请将SET SREC_CAT_PATH和SET BIN_FILE_PATH的值替换为你实际的srec_cat工具路径和bin文件路径。 输出文件yourfile_with_crc.bin将被保存在你指定的位置,并且包含原始的bin数据以及计算出的CRC值。 请注意,这个脚本假设你已经有了...
We crop the file by snipping out the very last word to leave us space to graft in the computed CRC. Then compute the CRC using the STM32 algorithm (built into SREC) and place the result at the end of the file in the space we just made by cropping. Line length form...
Chang Stream(变更记录流) 是指collection(数据库集合)的变更事件流,应用程序通过db.collection.watch()...