cancel
Showing results for 
Search instead for 
Did you mean: 

STM32747I-DISCO locked in error handler

AstraRB
Associate

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

 

 

3 REPLIES 3
Andrew Neil
Super User

@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.

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
Up vote any posts that you find helpful, it shows what's working..
AstraRB
Associate

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