HAL_Delay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 5:35 AM
Hello,
I tried the Hal_Delay function but it's not work Do you have any idea for this error ?
And my code still waits at this loop :
Thank you for your helps
Regards
- Labels:
-
SAI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 9:11 AM
Most likely, interrupts are disabled. Call __enable_irq() in main() before HAL_delay().
If you don't know what you are doing, start from some ready, simple example project for your board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 9:17 AM
If the MCU is clocking at 110 MHz, that's 110,000,000 cycles per second, there are 110,000 cycles in 1ms (1 KHz), if the prescaled clock source is DIV8, that would be 13,750 cycles.
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
‎2023-03-08 9:20 AM
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
‎2023-03-09 1:05 AM
Hello Tesla,
After your explanation I try to have 110 MHz, it's ok but I don't understand what do you mean prescaled clock source is DVI8 ? I have this configuration can you show me this prescaler on this picture please ?
it seems to me that I have a prescaler of 55 to have 110 MHz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-10 1:24 AM
You IOC file shows the System Tick at priority 7 when by default it is 0, though that is still probably not the problem.
Set a breakpoint at HAL_IncTick() and see if it gets called?
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-10 1:53 AM
After set a breakpoint in the function HAL_IncTick()
it does not pass in this function, probably I have to write an additional code ?
About System Tick at priority 7, I left the default settings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-04 7:15 AM
Hello,
Did you solve this issue? I have encountered same problem. Please indicate if you find the solution.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-27 6:04 PM
Anyone have a solution to this issue? I wish ST would address this problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-27 9:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-01 2:11 AM
Thank you UMP-Dan, It also works for me. Best.
