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.
was "chTimeNow() precision", now "RTC precision"
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: was "chTimeNow() precision", now "RTC precision"
The problem is that LSI is very inaccurate, this is why you see that difference. If you need an accurate RTC then you should fit on the discovery the 32768kHz crystal and the missing two capacitors.
Giovanni
Giovanni