2023-08-21 12:55 PM
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.
2024-11-27 05:37 AM - edited 2024-11-27 05:38 AM
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.
2024-11-27 05:51 AM
Hi @userst ,
I advise you follow this article: How to use VS Code with STM32 Microcontrollers - STMicroelectronics Community
2024-11-27 11:38 PM
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.
2024-11-28 12:34 AM
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
2024-11-28 06:09 AM
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.