cancel
Showing results for 
Search instead for 
Did you mean: 

MCU stuck

harshpanchal_6
Associate II

Hello,

I am working on stm32h7s78-dk board and I m running a simple LED toggle code in while loop. So, the MCU is getting stuck and my LED is blinking continuously. So, anyone has any solution for this please give your inputs on this.

 

Thanks,

 

2 REPLIES 2
Imen.D
ST Employee

Hello @harshpanchal_6 ,

Did you get stuck in the HAL_Delay() ? Make sure the delay is not too long.

Also, check the clock settings and systicks if correctly handled. Then, erase your board and try again. 

If you still need some getting started resources, I suggest you refer to this ST wiki page: STM32StepByStep:Step2 Blink LED - stm32mcu

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
SofLit
ST Employee

Hello,

This is confusing statement:

I m running a simple LED toggle code in while loop. So, the MCU is getting stuck and my LED is blinking continuously. 


You need to toggle a LED in while loop (I assume endless loop) but your problem is that your LED is getting toggled continuously?! Could you please clarify that point?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.