summaryrefslogtreecommitdiff
path: root/examples/boot/application/stm32h7/flash-boot.sh
blob: debdb17a770f5b9ce5683d8c9fdfe55e9fe0be54 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
mv ../../bootloader/stm32/memory.x ../../bootloader/stm32/memory-old.x
cp memory-bl.x ../../bootloader/stm32/memory.x

cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32f767zi --chip STM32F767ZITx --target thumbv7em-none-eabihf

rm ../../bootloader/stm32/memory.x
mv ../../bootloader/stm32/memory-old.x ../../bootloader/stm32/memory.x