Knowledge Base Article

Why is the “delay” function time in U-Boot different in cases of over 172ms?

Description

The Max delay time of the “udelay” function depends on HPS OSC1 input clock.

For example:

25MHz -> 171798us 

50MHz -> 85899us

Resolution

To workaround this behavior the “mdelay” function can be used for cases of over 172ms(25MHz).

 

See U-Boot documentation for more details on the mdelay function.

Updated 3 months ago
Version 2.0
No CommentsBe the first to comment