cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 VS Code Extension (No compiler found in cache file)

Legacy member
Not applicable

I am trying to get the STM32 VS Code Extension working on my macOS (Ventura 13.2.1). I have installed STM32CubeCLT and STM32CubeMX. I can compile my project successfully using the build command command. However when I press on the debug icon on the bottom toolbar, I get an error saying that "No compiler found in cache file Source Make Tools (Extension)" (See attached screenshot). I have examined the build/debug/build/CMakeCache.txt file and everything looks ok at first glance. Any insight or solutions as to what is going on would be welcomed.

25 REPLIES 25
Cartu38 OpenDev
Lead II

Have you got a chance to try brand new released solution (pre-released takes care you have to push right button to install it) ? STM32CubeCLT is not required anymore ! Some brand new integrated solution is promoted instead so called STM32Cube bundles serving the same but revisited experience. May help possibly any tool setup pain.

Could you elaborate more? I can't understand with "Have you got a chance to try brand new released solution".

Ah thanks for the explanation.

No, I'm used to work just with stable releases. I'll try the pre-release version

Cartu38 OpenDev
Lead II

I can confirm that upgrading to the newest pre-release STM32Cube VSCode Extension version (3.4.11) and uploading the ST-LINK firmware has resolved the "No compiler found in cache file" error. I can now build and debug in VSCode. This recent video walks you through the entire setup: https://www.youtube.com/watch?v=aWMni01XGeI