cancel
Showing results for 
Search instead for 
Did you mean: 

VS Code extension unable to properly load NUCLEO-H7S3L8 project

nagelanping
Associate
Just like the normal process, I generated the H7S3L8 project using CubeMX.nagelanping_0-1766825171070.png
Then I opened the project folder with VS Code, and STM32 VS Code extension detected that it is an STM32 project.nagelanping_1-1766825355905.png
But afterward it threw a problem.nagelanping_2-1766825489794.png

It required me to manually configure the specific model of the STM32. It seems that the CubeIDE for VS Code extension did not correctly recognize the model.nagelanping_3-1766825606824.pngSo I just chose the NUCLEO-H7S3L8.
But when I click the 'Save and close' button, it just shows the clicked animation effect, and then nothing happens. The extension still can't properly load the project and perform automated configuration.nagelanping_4-1766825889706.png
Why is this happening?
I am quite sure that other projects (such as STM32F401RCT6) can be properly recognized and loaded; moreover, if I manually go to 'Setup STM32Cube project(s)', the 'Save and close' button works normally for those projects.
It seems that only the NUCLEO-H7S3L8 or STM32H7XX series has this problem, or am I the only one experiencing it?
I speculate that this may be because the H7XX model project has three subproject folders: Boot, Appli and ExtMemLoader. And the extension is currently unable to properly load this type of project. So is there any solution?

 

 

-回到库-

 

3 REPLIES 3
Cartu38 OpenDev
Lead III

@nagelanping 
Device detection works for me:

Cartu38OpenDev_0-1766830857532.png

You have then to explicit all projects to get setup completed

Cartu38OpenDev_1-1766830934215.png

Myself I'm adding at once complete MX generated project root folder which is including them all

Cartu38OpenDev_2-1766831031764.png

 




That looks strange; theoretically, it should also recognize my model, but in reality, it doesn't.nagelanping_0-1766852629781.png
I can indeed try to add a Project like in your example image, but the only options available are 'Project' and the name of my folder. It seems I need to specify subprojects like Boot and Appli, but the interface doesn't give me the option to modify them. This indicates that the sxtension did not recognize these subprojects on my end.
In addition, I noticed that the style of prompts the extension gives me is different from your first picture.
Now I'm not sure whether the problem occurred when CubeMX generated it, or if there's a problem with the extension's recognition, or maybe it's a problem unique to the operating system(VS Code's problem on different system)? Are you using Microsoft Windows now?
Also, if it's convenient for you, please use CubeMX to generate a blank project(with subprojects Boot, Appli and ExtMemLoader) that can be properly recognized on your side, compress it, and send it to me via email. My email address is 'xiao.yi.ming@foxmail.com'. This will help me pinpoint the problem specifically.
Anyway, I am grateful for your help.

 

-回到库-

Thanks a lot! I struggled with this issue for hours! 

Once i add all 3 project (just to be clear: Boot, Appli and the top level as in your screenshot) things started to work as expected. 

Until then i was getting...

katerica_0-1767006254577.png

Once more simply doing this fixed the issue - no idea why, or why it would not do it by default...

katerica_1-1767006315893.png