Skip to main content
Visitor II
October 2, 2025
Question

STM32747I-DISCO locked in error handler

  • October 2, 2025
  • 3 replies
  • 215 views

Hello 

I tried a blinky code which works with an other disco board I bought several months ago and it doesn't work with the new one. I tried it in debug mode and I'm stuck here.

void Error_Handler(void)
{
 /* USER CODE BEGIN Error_Handler_Debug */
 /* User can add his own implementation to report the HAL error return state */
 __disable_irq();
 while (1)
 {
 }
 /* USER CODE END Error_Handler_Debug */
}

 

I saw in the forums that can be the power supply choice but it's the good one here I think 

AstraRB_0-1759395504475.png

 

I know my code works but it doesn't with newer boards, I bought the newer boards 3 weeks ago. 

Do you know what's happening here ?

Regards

 

 

    This topic has been closed for replies.

    3 replies

    Super User
    October 2, 2025

    @AstraRB wrote:

    I tried it in debug mode and I'm stuck here.


    So the first thing is to find out how you got there:

    https://community.st.com/t5/stm32-mcus-wireless/rak3172-error-when-waking-up/m-p/843878/highlight/true#M26588

    Graduate II
    October 2, 2025

    I'd recommend using the variant that passes __FILE__ and __LINE__ so you can quickly identify which failure point is calling.

    Probably one in System Clock Configuration 

    Or add some break points

    Boards should be relatively consistent.  Check ST-LINK version and options, particularly clock output speed.

    Check / report board revision numbers if some work and others don't. 

    Check chip revision as reported by STM32 Cube Programmer. 

    AstraRBAuthor
    Visitor II
    October 8, 2025

    Hi everyone

    I fixed it by uploading the demo binary file (the fruit game) first and then I upload my blinky code and this time it works. I did it with both of my boards which didn't work and now both are working.

    I can't explain that if you have any explanation I'll be very glad to read it.

    Regards