cancel
Showing results for 
Search instead for 
Did you mean: 

Code generated with CubeMx on NUCLEO-H755ZI-Q is not working with MDK-ARM

bennanbei
Associate II

Hello!
I am using the NUCLEO-H755ZI-Q development board. In STM32CubeMX, I selected "Start My project from ST Board" and chose the corresponding model. I generated both an STM32CubeIDE project and an MDK project. The M4 and M7 firmware compiled from the STM32CubeIDE project can be downloaded to the board and run. When the button is pressed, the light can flash. However, the M4 and M7 firmware compiled from the MDK project cannot be run when downloaded to the board. The light does not flash. What could be the reason? Logically speaking, the same CubeMZX sample was used, only the generated projects are different. Please help me. Thank you!

2 REPLIES 2
mƎALLEm
ST Employee

Hello,

I was not able to reproduce the issue. All LEDs are toggling by pressing the blue button with MDK-ARM project.

Try to erase the Flash:

mALLEm_0-1760952891963.png

And redo the test.

What MDK-ARM version are you using? I suggest to use the latest version.

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.
mƎALLEm
ST Employee

Ok Now I reproduced the behavior.

This is due to printf call in your main():

  printf("Welcome to STM32 world !\n\r");

If you comment it it will run. 

Unfortunately, MDK-ARM compiler 6 introduces many changes in its compiler. Unfortunately I don't have a solution for that. I may ask that question internally. Internal ticket number 219981.

You need also to check "Use MicroLiB" option in Target:

mALLEm_1-1760956259392.png

 

 

 

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.