Have you tried to use the k_sleep(K_SECONDS(1))? Maybe it works without changing the conf file.
toggle quoted messageShow quoted text
The default value is 10ms. You can set it in your board’s defconfig.
Thank you, that worked. It should probably go in the board’s defconfig like most of the others already have.
On Aug 1, 2018, 6:02 PM -0500, Li, Jun R <jun.r.li@...>, wrote:
Have you tried to add the following option in your “prj.conf”?
Which set the clock tick resolution to 1ms.
I noticed with my nucleo_l053r8 board that if I call k_sleep(1) in the basic/blinky sample, the time between LED toggles is about 10 milliseconds instead of 1 millisecond. Could there be a problem with the STM32L0 sleep function that is adding extra time?
Co-founder and Technical guru
+55 (82) 98144-8585 http://ayna.tech
| Skype: rodrigopex