How to Program Stm32f429I Discovery Board With Visual Studio Code
by nikkischulz6 in Circuits > Microcontrollers
255 Views, 0 Favorites, 0 Comments
How to Program Stm32f429I Discovery Board With Visual Studio Code
- I didn't know how I could program the stm32.
- so I found a video which was really helpful:
- https://www.youtube.com/watch?v=-p26X8lTAvo
Maybe some more steps are needed..but at least it should show that it worked.
Toolchain
Here I will describe this steps:
- download https://github.com/libopencm3/libopencm3-examples
- connect the discovery board with usb..
- open libopencm3-examples/examples/stm32/f4/stm32f429i-discovery in vscode
- there you can see some examples
- for example miniblink
- open this path inside of a terminal and write make
- the *.elf file will be created
- inside of launch.json which is inside of the directory .vscode:
- change the line "executable" to "executable": "./examples/stm32/f4/stm32f429i-discovery/miniblink/miniblink.elf",
- give it also a new name: "name": "Debug miniblink with OpenOCD",
( the elf file is like the executable file )
Now goto
and select
-----------
and it will upload the *.elf file and just works... you can debug