Skip to main content
Explorer
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,

 

    This topic has been closed for replies.

    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

    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?