You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "g2gps (via GitHub)" <gi...@apache.org> on 2023/10/24 00:21:27 UTC

[PR] examples/calib_udelay: Allow the number of delay loop iterations to be specified by kconfig. [nuttx-apps]

g2gps opened a new pull request, #2152:
URL: https://github.com/apache/nuttx-apps/pull/2152

   ## Summary
   
   The calibration test can take a long time on platforms with less processing power. Allow the default value to be changed with kconfig.
   
   ## Impact
   
   The calibration test completes in a more reasonable time.
   
   ## Testing
   
   Before this change, with the default 100000 iterations:
   
   ```
   nsh> calib_udelay
   
   Calibrating timer for main calibration...
   Performing main calibration for udelay. This will take approx. 220.677 seconds.
   ```
   
   With this change, and `CONFIG_EXAMPLES_CALIB_UDELAY_DELAY_TEST_ITERATIONS=5000`
   ```
   nsh> calib_udelay
   
   Calibrating timer for main calibration...
   Performing main calibration for udelay.This will take approx. 12.739 seconds.
   Calibration slope for udelay:
     Y = m*X + b, where
       X is loop iterations,
       Y is time in nanoseconds,
       b is base overhead,
       m is nanoseconds per loop iteration.
   
     m = 127.01355925 nsec/iter
     b = 103458.24360897 nsec
   
     Correlation coefficient, R² = 1.0000
   
   Without overhead, 0.00787317 iterations per nanosecond and 7873.18 iterations per millisecond.
   
   Recommended setting for CONFIG_BOARD_LOOPSPERMSEC:
      CONFIG_BOARD_LOOPSPERMSEC=7874
   
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] examples/calib_udelay: Allow the number of delay loop iterations to be specified by kconfig. [nuttx-apps]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #2152:
URL: https://github.com/apache/nuttx-apps/pull/2152


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org