Skip to main content
Associate
Oct 2, 2025 9:09 AM UTC
Question

STM32747I-DISCO locked in error handler

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

Andrew Neil
Super User
Oct 2, 2025 9:13 AM UTC

@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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
Oct 2, 2025 11:55 AM UTC

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. 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AstraRBAuthor
Associate
Oct 8, 2025 4:12 PM UTC

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