HAL_Delay problem!!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-01 2:31 AM
Hello everyone!!!
I get a problem with HAL_Delay function. When I use STM32CubeMX creat my simple project (blink a led with STM32F4 Discovery Kit) everything is OK with HAL_Delay() function.
But when I creat a same project without using STM32CubeMX, HAL_Delay() function seem not working. I don't know why.
Anyone can help me!! Thank you very much!!!!
- Labels:
-
STM32Cube MCU Packages
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-01 2:41 AM
Make your own delay using basic timer and dependencies may decrease.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-01 2:43 AM
Make sure to initialize the SysTick interrupt and that the interrupt calls the HAL functions to advance the internal tick count.
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
2019-05-01 2:48 AM
I have created project by STM32CubeMX but I can't find SysTick interrupt but it is OK. I copy this code to Keil uVision5 and HAL_Delay() not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-04 3:25 PM
You can put this to main.c, it works for me:
void SysTick_Handler(void) {
HAL_IncTick();
}
