cancel
Showing results for 
Search instead for 
Did you mean: 

Missing
CMSIS_PACK_ROOT

zhaojiying
Associate

bound doStepSettingsValidation 失败:找不到设备:缺少CMSIS_PACK_ROOT

zhaojiying_0-1747811968136.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Nawres GHARBI
ST Employee

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

NawresGHARBI_0-1748264309890.png

NawresGHARBI_1-1748264324958.png

 

View solution in original post

8 REPLIES 8
Florent V
ST Employee

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

Nawres GHARBI
ST Employee

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

NawresGHARBI_0-1748264309890.png

NawresGHARBI_1-1748264324958.png

 

sandwizard
Associate II

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

Extension: stmicroelectronics.stm32-vscode-extension
Version: 3.5.1

 


Screenshot 2025-07-15 at 18.59.28.png

Screenshot 2025-07-15 at 19.02.41.png

Hello @sandwizard,

Could you restart VSCode to flush the output channels and paste here the content of STM32Cube core ?

Mine looks like:

JulienD_0-1752744035797.png

 

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.



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.

MacBookPro:u585iot-cubemx-cmake sandwizard$ cube pack sync
Syncing metadata information /Users/sandwizard/Library/Application Support/stm32cube/packs
Snapshot is already up to date
Syncing online metadata information /Users/sandwizard/Library/Application Support/stm32cube/packs
Syncing completed in 1.302s
MacBookPro:u585iot-cubemx-cmake sandwizard$

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:

JulienD_0-1753080457594.png

 

I can confirm no settings have ever been changed since installation, and checking the mentioned setting just now reveals sync is enabled.

 

sandwizard_0-1753120187516.png