cancel
Showing results for 
Search instead for 
Did you mean: 

Issues compiling a project in VSCode

Bea_12
Associate

Hi everyone,

I’m still having an issue with my STM32F746G-Discovery board. I want to run the program using VSCode, but I’m encountering errors in my main.c file. Specifically, it can't find main.h, and as a result, the code isn’t running.

I want to build and run the code directly in VSCode, but it’s not working as expected. Could it be that the compiler is misconfigured? I’m currently using the GCC compiler for C/C++.

I also switched the toolchain in CubeMX to Makefile. After that, I installed CubeCLT and tried to run and build the code, but nothing happened. 

1 REPLY 1
KnarfB
Principal III

Well, the instructions (from your last topic or STM32 VS Code Extension - Visual Studio Marketplace) work well for me, and many many others. So it must be something specific to your system.

generic help:

  • reinstall from scratch, try on a different system
  • in the beginning, avoid exotic systems like some Linuxes and virtual machines 
  • stick to short & simple path for your project and toolchain: only use ASCII chars in the path, no ümlauts, spaces, special or exotic chars
  • re-read and follow the instructions
  • find a local expert for a second opinion
  • try Rubber duck debugging - Wikipedia

hth

KnarfB