cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-H7S3L8 - Project with 3 sub-projects - but no "build all"? - Solved

Jack3
Senior II

Hello, I have configured a project with CubeMX using a NUCLEO-H7S3L8 with an STM32H7S3L8 MCU.

Although everything works, I first need to flash the bootloader and then flash the application.
A reset is required to start the app.
Using the debugger, I confirmed that the app is running from an external flash drive (PC with a 0x9000000 value).

I'm missing the "Build All" option, which allows you to build all three projects simultaneously and start the application after flashing without having to press the reset button. I think so.

This is the first time I've used a bootflash MCU, and I'm sure I've missed something.
I've attached the IOC file, which only shows a blinking yellow LED.
Why do I need to reset the board to start the application?

 

Update 1:

There's a "Build All" button in the toolbar that performs this task. But it does this for all projects in the workspace.
I usually have several projects in one workspace, so I don't need to re-adjust my entire workspace, such as the dark theme, colors, fonts, etc. That's not always handy, especially not when refactoring variable names.

Update 2:

Regarding the need to press the reset button to launch the app, I've fixed that as well.
In the app's debug configuration, on the "Startup" tab, I had to add the bootloader.

Make sure they are in the correct order to avoid a hardfault when starting debugging, like shown below.

For the application it should look like this:

stm32cubeide_7Voq2Ty9R9.png

And for the bootloader it should look like this:

stm32cubeide_eP8rLD2Ko0.png

That was all folks, cheers, and happy debugging!

Solved.

 

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @Jack3 

Great job troubleshooting and resolving your issues! Thank you for sharing the steps you took to overcome the challenges with the STM32H7S3L8 and CubeMX. Your detailed explanation will be very helpful for others who might encounter similar situations.

Regarding the "Build All" option, try closing all unrelated projects in your workspace before clicking "Build All." This way, only the open projects will be built, making the process more efficient and focused on your current work

THX

Ghofrane

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.