Skip to content

Instantly share code, notes, and snippets.

@xueliu
Last active September 26, 2020 22:04
Show Gist options
  • Save xueliu/592fa89c278cd9bd645193ea2d6a5b24 to your computer and use it in GitHub Desktop.
Save xueliu/592fa89c278cd9bd645193ea2d6a5b24 to your computer and use it in GitHub Desktop.
stm32f746 uboot openocd
#!/bin/bash
openocd -f interface/stlink-v2-1.cfg -f board/stm32f7discovery.cfg \
-c "init" \
-c "reset init" \
-c "flash probe 0" \
-c "flash info 0" \
-c "flash write_image erase $UBOOT_PATH/spl/u-boot-spl.bin 0x08000000" \
-c "flash write_image erase $UBOOT_PATH/u-boot.bin 0x08008000" \
-c "reset run" \
-c "shutdown"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment