2025-05-21 12:19 AM
2025-05-26 5:59 AM
hi @zhaojiying
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
2025-05-21 1:25 AM - edited 2025-05-21 1:34 AM
Hi Zhaojiying,
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
2025-05-26 5:59 AM
hi @zhaojiying
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
2025-07-15 7:05 PM
Hello,
I am seeing the same error message, have followed the procedure in the solution, and continue to experience the error.
VSCode: Version: 1.102.0 (Universal)
OS: Darwin arm64 24.5.0
2025-07-17 2:20 AM
Hello @sandwizard,
Could you restart VSCode to flush the output channels and paste here the content of STM32Cube core ?
Mine looks like:
2025-07-18 11:53 AM
Hi @Julien D
Here is the output of [STM32Cube core] after a restart.
2025-07-18 11:48:04.070 [Info] Adding STM32Cube CLI path to environment: /Users/sandwizard/.vscode/extensions/stmicroelectronics.stm32cube-ide-core-0.17.1/resources/binaries/darwin/aarch64
2025-07-18 11:48:04.194 [Info] Configuring CMSIS_PACK_ROOT environment: /Users/sandwizard/Library/Application Support/stm32cube/packs
2025-07-18 11:48:04.310 [Info] Configuring CUBE_BUNDLE_PATH environment: /Users/sandwizard/Library/Application Support/stm32cube/bundles
2025-07-18 11:48:05.182 [Info] Installing STM32Cube bundles prerequisites
2025-07-18 11:48:06.330 [Info] Syncing CMSIS-Pack metadata for /Users/sandwizard/Library/Application Support/stm32cube/packs
2025-07-18 11:48:06.330 [Info] NODE_EXTRA_CA_CERTS=undefined
2025-07-18 11:48:06.333 [Info] STM32Cube Core activated in 2282ms
2025-07-18 11:48:06.333 [Info] No need to sync metadata, since recently updated.
2025-07-18 12:01 PM
Hello,
I wanted to provide an update, after running this command in the vscode terminal (as seen in your output) I am now able to successfully run and debug on the target.
2025-07-20 11:51 PM
Glad to read you are now able to debug your code.
That being said there might be something because "cube pack sync" is executed at startup unless you choose to disable it through the setting:
2025-07-21 10:50 AM
I can confirm no settings have ever been changed since installation, and checking the mentioned setting just now reveals sync is enabled.