Re: was "chTimeNow() precision", now "RTC precision"
Posted: Sat Dec 01, 2012 4:13 pm
Yes STM32_RTCSEL_LSI and yes LSE not fitted. I guess STM32_RTCSEL_HSEDIV is not an option for some reason, otherwise it probably would have be enabled by default?
chTimeNow is just a system variable read, why would it care for lock context?
Anyway I have enabled CH_DBG_SYSTEM_STATE_CHECK and with this option it seems like it hangs on "pwmStart(&TEST_PWMD, &pwmcfg);" call. I had no luck making chDbgPanic() function print the msg to USART and I still have to figure out a stable debug 'server' - that's a totally different subject I guess.
chTimeNow is just a system variable read, why would it care for lock context?
Anyway I have enabled CH_DBG_SYSTEM_STATE_CHECK and with this option it seems like it hangs on "pwmStart(&TEST_PWMD, &pwmcfg);" call. I had no luck making chDbgPanic() function print the msg to USART and I still have to figure out a stable debug 'server' - that's a totally different subject I guess.