HAL_Delay API missing for F3/F4


is there an API for making F3/F4 target sleep for a while? I’ve look for it but didn’t find anything.

Thanks in advance


Your best bet is to just delay in a loop, something like:

for (volatile uint32_t x = 0; x < SOME_VALUE; x++);

There is a way in the base HAL to do a precise delay, but we’ve made changes to the HAL to make the power traces nicer such that delay method no longer works.


1 Like