Created
June 22, 2017 01:59
-
-
Save jaxxzer/597abfdaad20e139f288c34d5b17240c to your computer and use it in GitHub Desktop.
Convert intel hex to binary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jack@jack-desktop:~/git/stm32flash-code(master)$ srec_cat file.hex -intel -o file.mot | |
jack@jack-desktop:~/git/stm32flash-code(master)$ srec_cat file.mot -o file.bin -binary | |
jack@jack-desktop:~/git/stm32flash-code(master)$ srec_cat file.mot -offset - -minimum-addr file.mot -o Altimeter-v2.31.bin -binary | |
jack@jack-desktop:~/git/stm32flash-code(master)$ time ./stm32flash -g 0x0 -b 115200 -w file.bin /dev/ttyUSB1 | |
stm32flash 0.5 | |
http://stm32flash.sourceforge.net/ | |
Using Parser : Raw BINARY | |
Interface serial_posix: 115200 8E1 | |
Version : 0x31 | |
Option 1 : 0x00 | |
Option 2 : 0x00 | |
Device ID : 0x0446 (STM32F302xD(E)/F303xD(E)/F398xx) | |
- RAM : Up to 64KiB (6144b reserved by bootloader) | |
- Flash : Up to 512KiB (size first sector: 2x2048) | |
- Option RAM : 16b | |
- System RAM : 8KiB | |
Write to memory | |
Erasing memory | |
Wrote address 0x0802c3e8 (100.00%) Done. | |
Starting execution at address 0x08000000... done. | |
real 0m56.376s | |
user 0m0.032s | |
sys 0m0.140s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment