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

Bildschirmfoto vom 2023-02-16 15-32-50.png
  • 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:

  1. download https://github.com/libopencm3/libopencm3-examples
  2. connect the discovery board with usb..
  3. open libopencm3-examples/examples/stm32/f4/stm32f429i-discovery in vscode
  4. there you can see some examples
  5. for example miniblink
  6. open this path inside of a terminal and write make
  7. the *.elf file will be created
  8. 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