2019-08-28 10:22 PM
HAL Library provide the HAL_Delay() for millisecond delay. I want to use micro second delay in STM32L4 so how I do it? Is it available in HAL library?
Solved! Go to Solution.
2019-08-31 04:47 AM
> You can simply do a nop loop
No, You can't.
NOP does nothing. NOP is not necessarily a time-consuming NOP. The processor might remove it from the pipeline before it reaches the execution stage.
Use NOP for padding, for example to place the following instruction on a 64-bit boundary.
2019-08-31 06:29 AM
Also it doesn't account for time in interrupts
2024-05-08 09:09 PM
I tried the DWT method in my code. It basically works.
However, I have 2 issues: