cancel
Showing results for 
Search instead for 
Did you mean: 

The demonstration program generated by cubemx for the NUCLEO-H563ZI cannot be run

BJX
Associate II

Hello!
As the title suggests, the demonstration program is generated from the options shown in the following figure.
BJX_0-1762417190844.png
After the program is burned onto the board, it won't run. It enters the debug mode and stops at the "SystemInit" point. After clicking continuously several times, it will then enter the "main" section.

BJX_1-1762417404264.png

Any help would be appreciated as I am losing hair over this haha.

 

Love me in the eye.
1 ACCEPTED SOLUTION

Accepted Solutions

Hello @BJX 

Please try to modify the Limit address field first then the base address

GhofraneGSOURI_0-1762507837576.png

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.

View solution in original post

8 REPLIES 8
Ghofrane GSOURI
ST Employee

Hello @BJX 

Make sure you are using the latest version of STM32CubeMX (version 6.15.0 ).

Additionally, configure STM32CubeIDE so that the debugger starts at the main function instead of stopping at SystemInit. To do this, open your project's debug configuration in STM32CubeIDE, navigate to the Startup  tab, and enable the option labeled "Set breakpoint at main". This will ensure the debugger automatically halts at the beginning of your main application code

GhofraneGSOURI_0-1762434952885.png

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.

Hello.@Ghofrane

I am using version 6.15, but the IDE is Keil.

BJX_0-1762479826758.png

Keil also selected the relevant options, but it had no effect.

BJX_1-1762479896793.png

I used the MCU option of Cubemx to create a simple LED blinking project for H563ZI, and there were no issues at all.

I'm not sure where the problem lies with the demonstration program. Thank you for your response.

Love me in the eye.

Hello @BJX 

Could you please attach your project? I will review your settings to ensure everything is configured correctly.

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.

Hello.@Ghofrane  

thanks for your help.

Love me in the eye.

Hello @Ghofrane GSOURI

Now there is a new issue. When using the 6.15 version of cubemx to generate the MPU configuration for h563, the Region Base Address option cannot be modified. No matter what value I input, it always ends up being 0. Is this a bug?

BJX_0-1762506080984.png

THX

BJX

 

Love me in the eye.

Hello @BJX 

Please try to modify the Limit address field first then the base address

GhofraneGSOURI_0-1762507837576.png

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.

Hello @Ghofrane GSOURI

Thank you. It's solved. I misunderstood the restricted address as the size, and confused it with h7. Additionally, have you received any messages regarding the demonstration program?

THX

BJX

Love me in the eye.

Hello @BJX 

I will update you as soon as I have more information. 

 

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.