The sleep time differs depending on whether the usleep function operates on OnChip Memory or on SDRAM.
Nios II
Embedded SW(OS)
Category: Nios® II
Tools: Nios® II EDS
device:-
This is by design.
Since usleep calculates dummy cycles from the CPU frequency, the latency to where the program is deployed affects it.
In the case of the Nios® II economy core, the lack of cache may cause it to run slower than expected.
If you want to do it with an exact value, you should use a timer.
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.