Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: V1.0.2.0
-
Fix Version/s: V1.0.3.0
-
Component/s: Linux Driver
-
Labels:None
-
Account:SDO Driver (SDODRIVER)
Description
On systems compiled with low timer frequency (timer frequency can be set during the build process see make menuconfig -> Processor type and features -> Timer frequency) e.g. 100Hz may take by default 10ms as the minimum sleep time. As a result the file download takes up a lot of time, since the file download is loop consisting of PutPacket() Sleep() and GetPacket(). The more time the sleep function schedules other processes the more time the download process will take.
To determine current system timer frequency run "cat /boot/$(uname -r) |grep CONFIG_HZ".
The issue can be resolved by introducing a compiler flag e.g. NO_MINIMUM_SLEEP which disable a call to the sleep function when calling OS_Sleep() with a sleep time set to 0.