I do signal analysis under the stm32, often to the SRAM memory signal data into hex, and through Hex2bin.exe this online ready-made conversion software to the bin file, so that the data can be analyzed on the PC machine. It is very troublesome to enter the conversion command every time in the console. So I thought I could convert the hex file directly.
It is easy to think of setting the program associated with the hex file in the folder options, but using Hex2bin.exe directly, because it needs to enter three parameters, only one parameter is used by default, and Hex2bin has some requirements for the input parameters, such as the length of the file name cannot exceed 8. No way, I wrote a console program to control the input parameters.
, and finally the entire calling process is completed by calling the Hex2bin program through the system function.
Hex file Quick Convert to bin file