2021-12-03 01:50 AM
Called from SystemClock_Config.
The pointer is clearly ok, as you can see in the Vars window, but the check detects it as null and exits with HAL_ERROR.
Doesn't make any sense, any thoughts?
2021-12-04 03:38 AM
Which STM32?
> the check detects it as null and exits with HAL_ERROR
Are you sure it's this check which returns with HAL_ERROR? Single-step in disasm window and observe what's happening in the registers.
Alternatively, switch optimization (maybe only for this particular function) off.
JW