in the STM32Cube extension tab hit the "setup STM32Cube Project" and click then on save and close, your project will be configured with the right device
In the meantime, to determine why the CMSIS_PACK_ROOT is missing, you can manually define the following attributes to your debug configuration: 'deviceName', 'deviceCore' and 'svdPath'.
Could you please provide us with the name of your device?
Kind Regards
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
in the STM32Cube extension tab hit the "setup STM32Cube Project" and click then on save and close, your project will be configured with the right device
I have an update that while the project I initially had this issue has been working without issue, we just tried to convert a second project out of cubeide and have the exact same issue recurring. We cannot get past it. Any further details of the root cause?
Seems like CMSIS_PACK_ROOT variable gets somehow corrupted (emptied) between VSCode startup and your debug launch. Your log clearly states that the variable has been well registered at extension init with the expected value on OSX.
Do you have the issue directly after starting VSCode, or only after a period of time?
When it happens, are you able to open the "Setup STM32cube Project(s)" editor without having any errors?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Yes, the issue was that debug launch resulted in the "Missing CMSIS_PACK_ROOT" error window. Updating CMakePresets.json and restarting VSCode solved the issue, though it is possible that the issue was solved by some side effect of doing this.