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
Solved! Go to Solution.
2025-11-27 7:59 AM
And please remove HAL_PWREx_ConfigSupply() if you have its call in SystemClock_Config(). Setting the power in SystemClock_Config() is an old implementation.
2025-11-27 8:09 AM
I've inserted the "ExitRun0Mode" function into the "system_stm32h7xx.c" file and all works good; now my question is:
In what way can I update the system files that my project uses ? I suppose that the "system_stm32h7xx.c" was an older version that was included in my project by the previuos release of CubeIde...just like the other system files.
CarloV
2025-11-27 8:10 AM - edited 2025-11-27 8:14 AM
@carloV Did you read my previous reply?
2025-11-27 8:40 AM
I've inserted the "ExitRun0Mode" function into the "system_stm32h7xx.c" file and all works good; now my question is:
In what way can I update the system files that my project uses ? I suppose that the "system_stm32h7xx.c" was an older version that was included in my project by the previuos release of CubeIde...just like the other system files.
I'll try to remove the file....anyway...
CarloV
2025-11-27 8:48 AM
I think my previous replies answer that question.
- You need to remove the old "system_stm32h7xx.c" file.
- Generate the code with CubeMx by pointing to the latest CubeH7 version: the new updated system_stm32h7xx.c containing ExitRun0Mode() will be generated and added to your project.
- Remove HAL_PWREx_ConfigSupply() if you have its call in SystemClock_Config() in your previous implementation.
2025-11-27 9:03 AM
Thank you,
tomorrow I'll implement your advice, I'll inform you tomorrow...
CarloV
2025-11-28 6:21 AM
Hi,
ok, deleting the "system_stm32h7xx.c" file file and restarting the CubeMX, a new "system_stm32h7xx.c" file was created containing the ExitRun0Mode() function.
Now all works good.
Thank you
2025-11-28 6:24 AM
Hi@carloV ,
Thank you for the feedback. In next time, if a post has answered your question or guided you to the solution that's the one you need to accept as solution.
Thank you.