Skip to main content
Associate III
December 10, 2024
Question

MCU stuck

  • December 10, 2024
  • 2 replies
  • 549 views

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

Technical Moderator
December 10, 2024

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
mƎALLEm
Technical Moderator
December 10, 2024

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 "Best answer" on the reply which solved your issue or answered your question.