forked from Specific-Cola/stm32f4_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d2364f
commit ccaddf0
Showing
5 changed files
with
40 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Makefile for STM32 operations using OpenOCD | ||
|
||
# OpenOCD configuration file | ||
OPENOCD_CFG = ./openocd/openocd.cfg | ||
|
||
# Target to flash the STM32 | ||
flash: | ||
openocd -f $(OPENOCD_CFG) -c "program program.bin 0x08000000 verify reset exit" | ||
|
||
# Target to reset the STM32 | ||
reset: | ||
openocd -f $(OPENOCD_CFG) -c "init" -c "reset" -c "exit" | ||
|
||
# Target to erase the STM32 | ||
erase: | ||
openocd -f $(OPENOCD_CFG) -c "init" -c "halt" -c "stm32f4x mass_erase 0" -c "exit" | ||
|
||
.PHONY: flash reset erase |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# STM32F4项目模板 | ||
|
||
## Prerequisites | ||
|
||
- cmake `>=3.22` | ||
|
||
- openocd | ||
|
||
- vscode + cortex-debug extension | ||
|
||
- arm-none-eabi-gcc | ||
|
||
## Usage | ||
|
||
把项目clone到本地,然后在VSCode里打开进行开发即可。 | ||
|
||
### makefile shortcuts | ||
|
||
- `make download` | ||
- `make reset` | ||
- `make erase` |
This file was deleted.
Oops, something went wrong.