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.

8 REPLIES 8
userst
Associate II

I have the exact same issue. 
Windows 11, newest version of vscode, STM32 VS Code extension, etc.

Did you ever got this to work?

 

Edit; Oh, I see the user account is not active anymore. Anyways, perhaps ST employees can support. 

Hi @userst ,

I advise you follow this article: How to use VS Code with STM32 Microcontrollers - STMicroelectronics Community

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hi @Imen.D 
Thanks for your reply. 
I have followed the guide in the article, without luck. I still have the following two issues:

"No compiler found in cache file Source Make Tools (Extension)" when pressing the "debug" icon. Also next to the debug icon, on the right, when pressing "launch" the compiled .elf file is prompted to be opened. I am not quite sure how to proceed just with the .elf file (already tried to associate the .elf file with CubeProgrammer but nothing happens).

 

Finally I have the issue where choosing the "Upgrade ST Link firmware" option leads to the:

"Error whilst trying to update STLink Firmware" error. I can still in the terminal do the STLink firmware update though. 

Imen.D
ST Employee

It’s recommended to upgrade STLink FW prior to initiating the debug process.

Execute the command "stlinkupgrade" in the VSCode terminal. This resolves the issue in this post: Error whilst trying to update STLink Firmware - STMicroelectronics Community

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hi again @Imen.D 

Unfortunately you forgot to read my message that you were commenting to. I do not have the issue you linked to.

Here is goes again:

I have followed the guide in the article, without luck. I still have the following two issues:

"No compiler found in cache file Source Make Tools (Extension)" when pressing the "debug" icon. Also next to the debug icon, on the right, when pressing "launch" the compiled .elf file is prompted to be opened. I am not quite sure how to proceed just with the .elf file (already tried to associate the .elf file with CubeProgrammer but nothing happens).

Finally I have the issue where choosing the "Upgrade ST Link firmware" option leads to the:

"Error whilst trying to update STLink Firmware" error. I can still in the terminal do the STLink firmware update though. 


I already updated ST link firmware via the terminal and can do debug. The issue is the shortcuts that are not working. Ie. pressing the debug icon and the "Upgrade ST LInk firwamre" button in the extension page.

Hi @userst,

Thank you for rising this issue. 

We were able to reproduce the problem, and it was escalated internally for fix via the internal ticket: 195217.

Thank you for your contribution and for taking time to report this with details.

(PS: ticket 195217 is an internal tracking number and is not accessible or usable by customers).

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thanks for understanding and confirming that this might indeed be a bug.
Is there a ETA on the fix? Perhaps with the next release of the extension? 

No working solution was provided, at the moment.

We will keep you updated when progress is made on this issue.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen