Last active
September 26, 2020 22:04
-
-
Save xueliu/592fa89c278cd9bd645193ea2d6a5b24 to your computer and use it in GitHub Desktop.
stm32f746 uboot openocd
This file contains hidden or 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
#!/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