2025-10-19 1:40 AM - last edited on 2025-10-20 3:52 AM by mƎALLEm
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!
2025-10-20 2:36 AM
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:
And redo the test.
What MDK-ARM version are you using? I suggest to use the latest version.
2025-10-20 3:31 AM - edited 2025-10-20 3:44 AM
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: