(this comes from https://github.com/encedo/hex2dfu)
hex2dfu
=======
Simple command line tool to convert file format from Intel HEX to STM32 DFU.
Compile
=======
hex2dfu is a single C file application and can be easly compile by any ANSI C compiler. No makefile required. Just type:
gcc hex2dfu.c -o hex2dfu.exe
I`m using mingw32 under Windows, change parameters regards your enviroment.
To enable ED25519 code signing feature, download ED25519 code from https://github.com/encedo/ed25519 or https://github.com/orlp/ed25519 to folder ED25519
Automated CRC32 generation in very usefull when custom bootloader is in use. We can check firmware at every MCU boot and execute only when file ingerrity is authenticated. Otherwise performe failover (e.g. start USB bootloader).
Custom USB Bootloader supporting CRC32 checking during boot will be open sourced soon. Stay tuned :)