flashing - mean00/DSO_STM32Duino GitHub Wiki
Flashing
/!\ Starting with 1.06 there is only one file to flash, there is no longer a bootloader.
Power supply warning (important!)
Never ever power the DSO both through SWD and through its native power supply at the same time.
That might burn something
For flashing operation, powering it through STLink / Blackmagic is enough, don't power on the board
Flashing with blackmagic
You'll have to replace /dev/XXXX by the port the blackmagic is connected to
Power on/power off and flash the dso code
arm-none-eabi-gdb -ex "target extended-remote /dev/XXXXX" -ex "monitor swdp_scan" -ex "attach 1" -ex "mon option erase" -ex "load Dso150.elf" -ex "compare-sections" -ex "set confirm off" -ex "file Dso150.elf"
Reboot, you should see the splash screen
Flashing with stlink v2
Download the stlink utilities ( as of now https://github.com/stlink-org/stlink/releases/tag/v1.6.1 ) Take the stlink-1.6.1-x86_64-w64-mingw32.zip version if you are running a recent windows (64 bits).
convert the elf to bin if needed
arm-none-eabi-objcopy -Obinary Dso150.elf Dso150.bin
st-flash write Dso150.bin 0x8000000
Reverting to vanilla/stock formware (STLink v2)
Download firmware from jyetech and unzip it
Power the board through SWD, dont switch it on !
st-flash --format ihex write 113-15001-064.hex
(replace the xxxx.hex by the correct name)
You shouldnt have issue with serial number as we dont modify the e2prom, but i'm not 100% sure
/!\ If you use serial link to flash the firmware, be sure to disable the watchdog. Flashing it twice might also work (dont know why)