First time user, trying to get dev environment setup
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!
