2025-10-02 2:09 AM
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
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
2025-10-02 2:13 AM
@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:
2025-10-02 4:55 AM - edited 2025-10-02 4:57 AM
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.
2025-10-08 9:12 AM
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