Olimexino/MapleRET6 setInterval problem #4360
Replies: 1 comment
-
Posted at 2015-01-20 by DrAzzy You're not building it yourself using the code sorcery compiler, are you? That one produces builds where time keeping is busted - you want to use the one Gordon uses, listed in the change log on github Posted at 2015-01-20 by jlawson I'm building it myself using: Posted at 2015-01-20 by DrAzzy Okay, yeah, then it's not the same problem I had (with the old compiler, time is busted on v72, but not v70) Is getTime() returning correct values, or bogus ones? Posted at 2015-01-20 by jlawson getTime() is returning monotonically increasing values at what appears to be a steady rate. Posted at 2015-01-20 by DrAzzy Sounds like the Espruino firmware thinks the chip is clocked at 5/8ths the speed it actually is. That doesn't explain why the intervals don't run at a constant speed, though. Posted at 2015-01-21 by @gfwilliams There's sometimes a bit of wobbling at first with the Espruino boards as the RTC and SysTick timers struggle to get in sync. I guess it's possible that it is another issue to do with the 12 byte variables though. Posted at 2015-01-21 by user51876 ret6 should have 16bit var refs Posted at 2015-01-21 by jlawson Yes, @user51876 is correct. This occurs on both the Olimexino (12 bit vars) and the MapleRET6 (16 bit vars). Also, as @drazzy suggests; I will check my build environment. Posted at 2015-01-21 by @gfwilliams @jlawson actually for anything non-espruino-board, the Low Speed Oscillator shouldn't be needed - it works entirely using the SysTick timer. Posted at 2015-01-26 by @gfwilliams Just to link to a thread on this here. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-01-20 by jlawson
When running the toggle LED from the Quickstart page the LED does not blink steadily.
It appears that there may be multiple calls to the setInterval callback function, toggle().
The shorter the interval the more noticeable the erratic blinking.
The boards are running off a battery with the console on serial1.
This happens with v1.72 .
with v1.71 I get no response from the boards
however with v1.70 this works as expected (steady blink).
Beta Was this translation helpful? Give feedback.
All reactions