2025-11-27 7:00 AM
Hi,
I've installed the CubeIDe rel 2.0.0 and the CubeMX rel 6.16.0; when I build my project this error appears: undefined reference to `ExitRun0Mode'.
May you help me ?
Thank you, CarloV
2025-11-27 7:12 AM
Here is a definition of that file. Maybe it's the one you want.
Would be better for you to provide your IOC or explain how you project was created. If the function is there, it should be found.
2025-11-27 7:17 AM
2025-11-27 7:19 AM - edited 2025-11-27 7:20 AM
Hello,
ExitRun0Mode() was introduced (if I'm not mistaken) in V1.7.0. So please update your CubeHAL repositry folder to the latest version.
2025-11-27 7:20 AM
sorry....I built with the 1.19.0 release...
CarloV
2025-11-27 7:21 AM
Are you sure about those version numbers?
The latest CubeIDE is v2.0.0 ...
And CubeIDE v2.0.0 does indeed require the separate CubeMX:
2025-11-27 7:25 AM
I checked my "system_stm32h7xx.c" file and I haven't find the "ExitRun0Mode" function...
CarloV
2025-11-27 7:28 AM
Sorry...some confusion, yes the release is th 2.0.0 and if I want to graphically edit the IOC, I need to have the CubeMX; clicking the IOC file the CubeMX starts...
2025-11-27 7:39 AM
@carloV wrote:
I checked my "system_stm32h7xx.c" file and I haven't find the "ExitRun0Mode" function...
CarloV
Try to remove system_stm32h7xx.c and re-generate the code again in CubeMx. But be sure you are pointing to the latest CubeH7 version:
2025-11-27 7:48 AM - edited 2025-11-27 8:01 AM
If I open your IOC and generate code and compile the project, it (mostly) works.
Except that you have do not generate main checked, so it doesn't generate that.
If I add main(), it compiles.
Finished building target: SpectrumAna.elf
arm-none-eabi-size SpectrumAna.elf
arm-none-eabi-objdump -h -S SpectrumAna.elf > "SpectrumAna.list"
text data bss dec hex filename
9396 8 2112 11516 2cfc SpectrumAna.elf
Finished building: default.size.stdout
Finished building: SpectrumAna.list
ExitRun0Mode is generated and present in system_stm32*.c
I wonder if you are not regenerating code.