makefile: Added make rule to perform stm32 mass erase.

Also, removed some trailing spaces in makefile.
This commit is contained in:
dnordahl83 2022-01-19 10:51:18 +01:00
parent 75f9451635
commit 324d2d4a29
1 changed files with 11 additions and 3 deletions

View File

@ -340,3 +340,11 @@ debug-start:
size: build/$(PROJECT).elf size: build/$(PROJECT).elf
@$(SZ) $< @$(SZ) $<
mass_erase:
@openocd -f board/stm32f4discovery.cfg \
-c "init" \
-c "reset halt" \
-c "stm32f2x mass_erase 0" \
-c "sleep 200" \
-c "shutdown"