cancel
Showing results for 
Search instead for 
Did you mean: 

SystemClock_Config fails at startup after upgrading CubeMX app

TBell.2
Associate II

I seem to be having an issue on my custom board. I upgraded my CubeMX app and now when I attempt to debug the application fails when HAL_RCC_OscConfig is called in method SystemClock_Config at startup. It's consistent every time. I've scoured the configuration files to no avail.

8 REPLIES 8
TDK
Guru

Step through the code, where does it fail within HAL_RCC_OscConfig?

If you feel a post has answered your question, please click "Accept as Solution".
TBell.2
Associate II

tickstart = HAL_GetTick();

Line 501

TBell.2
Associate II

It reports a bus fault

TBell.2
Associate II

If I click reset on the debugger and hit go it gets past this line every time

TBell.2
Associate II

And, when it runs the software timers don't work at all.

TDK
Guru

Perhaps the clock source is unstable or not at the frequency you're expecting. HAL_GetTick is harmless, examine the code yourself.

If you feel a post has answered your question, please click "Accept as Solution".
TBell.2
Associate II

The clock is internal PLL

TBell.2
Associate II

When I updated the CubeMX and the port files this started happening