Skip to content

Commit fba0881

Browse files
committed
Updated doc
1 parent 54de9ab commit fba0881

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.vscode/launch-stm32l4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// Arm System View Description, downloaded from https://www.st.com/en/microcontrollers-microprocessors/stm32l476rc.html#
1818
"svdFile": "scripts/STM32L4x6.svd",
1919
"configFiles": [
20-
// Tell OpenOCD to open the ST Link connection to STM32F1 MCU.
20+
// Tell OpenOCD to open the ST Link connection to STM32 MCU.
2121
"interface/stlink-v2.cfg",
2222
// Previously: "target/stm32f1x.cfg",
2323
"target/stm32l4x.cfg",

scripts/stm32l4/README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1-
# stm32l4
1+
# stm32l4: Build and Flash Scripts for STM32 L4xx
22

3-
Scripts for STM32L4
3+
[`build-boot.cmd`](build-boot.cmd)[`.sh`](build-boot.sh): Build the bootloader by running `newt build stm32l4_boot`
4+
5+
build-app.cmd, .sh: Build the application by running newt build stm32l4_my_sensor
6+
7+
image-app.cmd, .sh: Create the application firmware image: newt create-image -v stm32l4_my_sensor 1.0.0
8+
9+
flash-boot.cmd, .sh: Flash the bootloader with OpenOCD
10+
11+
flash-boot.ocd: OpenOCD script for flashing the bootloader
12+
13+
flash-app.cmd, .sh: Flash the application with OpenOCD
14+
15+
flash-app.ocd: OpenOCD script for flashing the application
16+
17+
flash-init.ocd: OpenOCD initialisation script called by flash-boot.ocd and flash-app.ocd
18+
19+
debug.ocd: OpenOCD script for debugging the application. Called by .vscode/launch-stm32l4.json

scripts/stm32l4/debug.ocd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This is an OpenOCD script that connects to the STM32 Blue Pill for Cortex Debug.
1+
# This is an OpenOCD script that connects to the STM32 L4xx for Cortex Debug.
22

33
# Debug Level must be 2 or greater or gdb will fail.
44
debug_level 2

0 commit comments

Comments
 (0)