2022-04-13 05:49 AM
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.
2022-04-13 06:16 AM
Step through the code, where does it fail within HAL_RCC_OscConfig?
2022-04-13 06:18 AM
tickstart = HAL_GetTick();
Line 501
2022-04-13 06:19 AM
It reports a bus fault
2022-04-13 06:34 AM
If I click reset on the debugger and hit go it gets past this line every time
2022-04-13 06:36 AM
And, when it runs the software timers don't work at all.
2022-04-13 06:38 AM
Perhaps the clock source is unstable or not at the frequency you're expecting. HAL_GetTick is harmless, examine the code yourself.
2022-04-13 06:39 AM
The clock is internal PLL
2022-04-13 06:53 AM
When I updated the CubeMX and the port files this started happening