Skip to content

zhp-rs/nucleo-h743zi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nucleo-h743zi rust embedded sample

build

cargo build

run

env: openocd, stlink

  1. gdb debug
openocd -f debug/openocd.cfg
cargo run --bin tri_led
  1. cortex debug
  2. cargo flash
cargo flash --bin led
  1. generate binary
cargo objcopy --release --bin tri_led -- -O binary led.bin

download use stlink command tool

ST-LINK_CLI.exe -p led.bin 0x08000000 -Rst # Windows

download use openocd

 openocd -f debug/openocd.cfg   -c init -c halt -c "flash write_image erase led.bin 0x08000000" -c reset -c shutdown

download use pyocd

 pyocd flash --pack ~/.local/share/Keil.STM32H7xx_DFP.2.3.1.pack -t stm32h743zitx -f 4M -a 0x08000000 led.bin