Posts

Showing posts from March, 2024

Blog moved

  Blog moved to:  https://symonb.github.io/ All posts will be moved there in close future.

How to develop STM32 with VScode? part 2/2

Image
  So far, everything was working only if you were using the same MCU as mine - STM32F405RGT. Since, arguably, not everybody is programming drones on this exact MCU, in this post I will show how to set up a project from scratch and along this way reveal a bit of the mystery of how everything works and what was the purpose of some files from a previous post. Luckily this will be the last part of this complicated process and ideally, after that, you should be able to develop any STM32-based board. Create a project structure Open the folder where you want your project and create new folders: Src , Drivers , bin , build , link . I keep the same folder structure among all projects so that I can just copy an existing one and change only MCU-specific parts. Of course, you can have different folder structures, but be aware of that and make suitable adjustments throughout this post.   Add files The next step is downloading and adding all essential files t