STM32H7 HAL_Delay(200); Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-04 5:10 AM
This is my first time working with STM32H7B3IIT6 MCU. I wanted to make a led blink application, but the program is HAL_Delay(); it goes into an infinite loop and doesn't exit.
- Labels:
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-04 5:15 AM
Like you didn't start SysTick, or other interrupt source, or you're blocking in an interrupt or callback.
​
Check HAL_Init()​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-04 5:23 AM
I did not set any other parameters. No interrupts or other code. The program hangs at the following place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-04 5:26 AM
I am uploading same code to STM32H7B3LIH6QU mcu. It's working. All settings are the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-04 6:38 AM
There aren't any issues with the code you presented. Unlikely that the code you've linked is hanging. There is no complicated or blocking logic within there. My guess is you're stuck in an IRQ which prevents the main loop from making progress.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-04 6:49 AM
I am not using any IRQ. I am using it with default settings. It works fine with STM32H7B3LIH6QU MCU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-07 11:11 AM
If you are using FreeRTOS HAL_Delay(); not works. Use osDelay(200) instead
