2022-01-04 11:14 PM
2022-01-05 03:35 AM
It needs the SysTick or other TIM source to interrupt and count.
It therefore has some interrupt and priority issues if miss used under interrupt context or callbacks.
2022-01-05 07:33 AM
You can inspect the source for HAL_Delay and verify it's doing the right thing. It doesn't need to be treated as a black box.
2022-01-06 02:21 AM
as you said i removed HAL_Delay() function and i monitor variable uwTick maimum value of variable is 406 then variable is automatically set to 0 you can see in below image.
that's the problem but why it get automatically reset to 0
so i check reset pins of MCU automatically pulled low continuous time interval so my MCU get RESET i don't know why its automatically pulled low?
2022-01-06 07:11 AM
I didn't say to remove HAL_Delay.
Monitor RCC_CSR register at startup to determine the cause of reset.
2022-01-07 06:04 AM