2025-07-25 3:21 AM
I have questions on the System Memory Boot Mode of the STM32G070CB MCU
Setup:
What I tried to do was exit the System Memory Boot Mode and Access the Main Application, but failed:
Abnormal UART Log (unknown pattern)
Normal Application Uart Log (expected)
Question:
Solved! Go to Solution.
2025-07-25 7:10 AM
Looks like the application is running but the clock rate is not as expected.
The time between UART bursts is about 0.7s instead of 1s and the length is similarly reduced. This indicates a bad clock speed.
Doesn't seem like a GO command problem but rather a clock initialization problem. Connect with the debugger and examine the state of the chip.
2025-07-25 7:10 AM
Looks like the application is running but the clock rate is not as expected.
The time between UART bursts is about 0.7s instead of 1s and the length is similarly reduced. This indicates a bad clock speed.
Doesn't seem like a GO command problem but rather a clock initialization problem. Connect with the debugger and examine the state of the chip.
2025-07-27 6:05 PM
@TDK Thank you for your reply. I have no experience with the clock speed issue before. How should I use the debugger to locate the clock speed problem?
2025-07-27 11:29 PM
Oh, I found the problem which related to the SystemClock_Config(). Thank you for your suggestion.
Since the MCU uses 24MHz in the System Memory bootloader, and the Main Application should run as 16MHz, the SystemClock_Config() is missing in the main function.
It could exit the System memory bootloader mode and run the Main Application normally after fixing the clock issue