This can be done with smartsnippets. This tool takes care of the hex to bin conversion using the command line hex2bin utility, and programming this bin file in OTP.
Hi RvA: 根据一个- b - 001文档,the external processor stm32f411 acted as host and communciated with da14580 by spi , thus I want to store the image file (hex file ) of the profile and application of da14580 in internal flash of external processor stm32f411,so i should transfer the hex file to C array . how can i do and how can i transfer the hex file to C arrary? Thanks
Hi Aihuazou, the image file should be in bin format. So the hexfile has to be transfered using the hex2bin utility. Hex2bin can be found inside SDK 3.0.8: …\SDK_3.0.8.0\DA14580_581_SDK_3.0.8.0\DA14580_581_SDK_3.0.8.0\tools\flash_programmer.
Details on the DA14580 External processor interface over SPI can be found in UM-B-013.
Hi MH_Dialog: I use the Bin2Csrc to transfer the hex file to C array,but i found the result transfered from Bin2Csrc is different from the SmartSnippets ,Why?
This can be done with smartsnippets. This tool takes care of the hex to bin conversion using the command line hex2bin utility, and programming this bin file in OTP.
Best regards, RvA
Hi RvA:
根据一个- b - 001文档,the external processor stm32f411 acted as host and communciated with da14580 by spi , thus I want to store the image file (hex file ) of the profile and application of da14580 in internal flash of external processor stm32f411,so i should transfer the hex file to C array . how can i do and how can i transfer the hex file to C arrary?
Thanks
Hi Aihuazou, the image file should be in bin format. So the hexfile has to be transfered using the hex2bin utility. Hex2bin can be found inside SDK 3.0.8:
…\SDK_3.0.8.0\DA14580_581_SDK_3.0.8.0\DA14580_581_SDK_3.0.8.0\tools\flash_programmer.
Details on the DA14580 External processor interface over SPI can be found in UM-B-013.
Best regards, RvA
Hi Aihuazou,
there is one alternative to convert hex to bin to csv.
find Bin2Csv
BR, Morris
Hi MH_Dialog:
I use the Bin2Csrc to transfer the hex file to C array,but i found the result transfered from Bin2Csrc is different from the SmartSnippets ,Why?