cancel
Showing results for 
Search instead for 
Did you mean: 

First time user, trying to get dev environment setup

dannys42
Visitor

I'm a first time user of STM32 and trying to get my environment setup to build using Visual Studio Code.  I installed this extension STM32CubeIDE for Visual Studio Code (based on the suggestion from this thread), which ended up installing a number of dependencies.

The user guide seems to suggest "Create empty project" is the way to go.  I had some difficulty with the main install and had to tweak my settings.json, but I think I finally got the paths correct.  But when I build a project, I'm getting this error:

 

[rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open Error: No index file found. [object Object]

 

I get the same error when using creating a new project via STM32CubeMX with clang:

[rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open Error: No index file found. [object Object]

 

However, using  STM32CubeMX with gcc, I get this error:

 

[cmake] -- The C compiler identification is unknown
[cmake] -- The CXX compiler identification is unknown
[cmake] CMake Error at CMakeLists.txt:28 (project):
[cmake] The CMAKE_C_COMPILER:
[cmake]
[cmake] arm-none-eabi-gcc
[cmake]
[cmake] is not a full path and was not found in the PATH.
[cmake]
[cmake] Tell CMake where to find the compiler by setting either the environment
[cmake] variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
[cmake] the compiler, or to the compiler name if it is in the PATH.
[cmake]
[cmake]
[cmake] CMake Error at CMakeLists.txt:28 (project):
[cmake] The CMAKE_CXX_COMPILER:
[cmake]
[cmake] arm-none-eabi-g++
[cmake]
[cmake] is not a full path and was not found in the PATH.
[cmake]
[cmake] Tell CMake where to find the compiler by setting either the environment
[cmake] variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
[cmake] to the compiler, or to the compiler name if it is in the PATH.
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!

 

I also never see the "Would you like to configure discovered CMake project(s) as STM32Cube projects?" prompt as suggested in this thread.  Additionally, the "Setup STM32Cube project(s)" action in the actions tab is always grey.

 

Any suggestions on how to proceed?  Looking forward to getting basic "Hello World" working.

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Issamos
Lead II

Hello @dannys42 

To start with the STM32CubeIDE for visual studio on the VS code, I suggest you to follow the same procedure as this video.

Best Regards.

II

View solution in original post

2 REPLIES 2
Issamos
Lead II

Hello @dannys42 

To start with the STM32CubeIDE for visual studio on the VS code, I suggest you to follow the same procedure as this video.

Best Regards.

II

Thanks @Issamos, in fact I was using the same board as in the video (NUCLEO-U385RG-Q), but wasn't getting the "Would you like to configure discovered CMake project(s) as STM32Cube projects?" prompt.  I realized then that I had disabled this previously because it was conflicting with an ESP-IDF project I had opened when I first installed.  I found the relevant configuration and removed it in in settings.json, and now I got the prompt and things are working again.  It's weird there doesn't seem to be a manual way to do this CMake configuration.  But at least I got it working now.


Thanks for your help!