2021-04-10 02:36 PM
Hello,
I've got a STM32H745BI on custom board and I cannot get it working. The program always jumps to the error handler at
while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) != RESET) && (timeout-- > 0));
if ( timeout < 0 )
{
Error_Handler();
}
I've found in the reference manual that D2CKRDY is D2 domain clocks ready flag, so it's probably some sort of clock issue. I'm using the internal oscillator. What could be wrong? Thanks :)
Solved! Go to Solution.
2021-04-12 10:42 AM
I've figured it out! The problem was that it is dual code MCU but I have never programmed the second M4 core. So the M7 was waiting for the M4 to initialize, but it never did...
If you have the same problem, the solution si really simple: Just upload empty (default) program to the M4 CPU.
2021-04-12 10:42 AM
I've figured it out! The problem was that it is dual code MCU but I have never programmed the second M4 core. So the M7 was waiting for the M4 to initialize, but it never did...
If you have the same problem, the solution si really simple: Just upload empty (default) program to the M4 CPU.