cargo build
env: openocd, stlink
- gdb debug
openocd -f debug/openocd.cfg
cargo run --bin tri_led
- cortex debug
- cargo flash
cargo flash --bin led
- generate binary
cargo objcopy --release --bin tri_led -- -O binary led.bin
ST-LINK_CLI.exe -p led.bin 0x08000000 -Rst # Windows
openocd -f debug/openocd.cfg -c init -c halt -c "flash write_image erase led.bin 0x08000000" -c reset -c shutdown
pyocd flash --pack ~/.local/share/Keil.STM32H7xx_DFP.2.3.1.pack -t stm32h743zitx -f 4M -a 0x08000000 led.bin