Page 1 of 2

"chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 3:57 pm
by lmamakos
I have an STM32L-Discovery board that I'm prototyping an application on. I have USART1 and USART3 active, and I2C1 with an MMA8452Q accelerometer on the I2C bus. I have a thread running that at present polls the accelerometer at about 100Hz, and that can run for quite a long time with no issues.

If while all this is running, I either invoke the test suite from the shell process running on USART1, or I press the "user" button (the main application is derived from the demo), then I get a repeatable panic just after the "I/O Queues throughput" benchmark apparently starts (that's the last message printed).

gdb reveals:

Code: Select all

(gdb) bt
#0  port_halt () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore.c:48
#1  0x08000d36 in chDbgPanic (msg=0x8012300 "chVTResetI(), #1")
    at ../../chibios/stable_2.4.x/os/kernel/src/chdebug.c:274
#2  0x08000e70 in chVTResetI (vtp=0x200027b4) at ../../chibios/stable_2.4.x/os/kernel/src/chvt.c:111
#3  0x0800bf94 in i2c_lld_master_transmit_timeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 ">@\303\000\000\000`\303\000\000\000\303\000\000\000", rxbytes=6, timeout=4)
    at ../../chibios/stable_2.4.x/os/hal/platforms/STM32/i2c_lld.c:905
#4  0x0800a5ca in i2cMasterTransmitTimeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 ">@\303\000\000\000`\303\000\000\000\303\000\000\000", rxbytes=6, timeout=4)
    at ../../chibios/stable_2.4.x/os/hal/src/i2c.c:206
#5  0x0801108c in AccelThread (arg=0x20001c14) at accel.c:106
#6  0x08000742 in _port_thread_start () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore_v7m.c:262
#7  0x080010ee in chSchGoSleepS (newstate=0 '\000') at ../../chibios/stable_2.4.x/os/kernel/src/chschd.c:125
#8  0x200028ec in ?? ()

and

(gdb) frame 2
#2  0x08000e70 in chVTResetI (vtp=0x200027b4) at ../../chibios/stable_2.4.x/os/kernel/src/chvt.c:111
111     chDbgAssert(vtp->vt_func != NULL,
(gdb) list
106    */
107   void chVTResetI(VirtualTimer *vtp) {
108   
109     chDbgCheckClassI();
110     chDbgCheck(vtp != NULL, "chVTResetI");
111     chDbgAssert(vtp->vt_func != NULL,
112                 "chVTResetI(), #1",
113                 "timer not set or already triggered");
114   
115     if (vtp->vt_next != (void *)&vtlist)

(gdb) p *vtp
$14 = {vt_next = 0x20002934, vt_prev = 0x20001448, vt_time = 0, vt_func = 0, vt_par = 0x20001c14}


Is the test suite supposed to be non-invasive? Looking at that test, it doesn't look like it ought to impact my i2c activity other than, perhaps, slowing it down?

Any thoughts on how to proceed would be appreciated. While ultimately I won't have the benchmark test in my application, I want to make sure this isn't a sign of some other issue that will cause me problems. Thanks in advance for any suggestions!

I'm running the 2.4.x stable branch head, fairly close to the 2.4.1 release when I diffed it a few days ago.

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 4:10 pm
by Giovanni
Hi,

It looks like a race condition in i2c_lld_master_transmit_timeout(), the virtual timer is reset but it is already no more active.

I'll post a tentative fix in this thread later today, I'm off for some hours.

About the test suite, it is invasive because it is also a stress test but it should never cause the system to hang, the worst should be some tests failing because threads placed at higher priority.

Giovanni

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 4:15 pm
by lmamakos
Thanks so much for the prompt reply! I'll watch later for your tentative fix. It had the feel of a race condition, but I am not familiar enough the code and typical idioms to have expect to make very much progress. I appreciate the rapid analysis and response.

As it is Saturday, I would expect that you'd be off to enjoy the day!

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 7:26 pm
by Giovanni
Hi,

Do you mind testing the file attached? I think I found the problem.

Giova

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 8:10 pm
by lmamakos
I seem to see the same symptoms, occurring at the same time as before.

Code: Select all

Breakpoint 1, port_halt () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore.c:48
48     port_disable();
(gdb) bt
#0  port_halt () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore.c:48
#1  0x08000d36 in chDbgPanic (msg=0x8012330 "chVTResetI(), #1")
    at ../../chibios/stable_2.4.x/os/kernel/src/chdebug.c:274
#2  0x08000e70 in chVTResetI (vtp=0x200027b4) at ../../chibios/stable_2.4.x/os/kernel/src/chvt.c:111
#3  0x0800bfc0 in i2c_lld_master_transmit_timeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 "9\302\000\000\000\303\000\000\000P\303\000\000\000", rxbytes=6, timeout=4) at i2c_lld.c:903
#4  0x0800a5ca in i2cMasterTransmitTimeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 "9\302\000\000\000\303\000\000\000P\303\000\000\000", rxbytes=6, timeout=4)
    at ../../chibios/stable_2.4.x/os/hal/src/i2c.c:206
#5  0x080110bc in AccelThread (arg=0x20001c14) at accel.c:106
#6  0x08000742 in _port_thread_start () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore_v7m.c:262
#7  0x080010ee in chSchGoSleepS (newstate=0 '\000') at ../../chibios/stable_2.4.x/os/kernel/src/chschd.c:125
#8  0x200028ec in ?? ()
Cannot access memory at address 0x80116
(gdb) frame 2
#2  0x08000e70 in chVTResetI (vtp=0x200027b4) at ../../chibios/stable_2.4.x/os/kernel/src/chvt.c:111
111     chDbgAssert(vtp->vt_func != NULL,
(gdb) list
106    */
107   void chVTResetI(VirtualTimer *vtp) {
108   
109     chDbgCheckClassI();
110     chDbgCheck(vtp != NULL, "chVTResetI");
111     chDbgAssert(vtp->vt_func != NULL,
112                 "chVTResetI(), #1",
113                 "timer not set or already triggered");
114   
115     if (vtp->vt_next != (void *)&vtlist)
(gdb) info args
vtp = 0x200027b4
(gdb) p *vtp
$1 = {vt_next = 0x20002934, vt_prev = 0x20001448, vt_time = 0, vt_func = 0, vt_par = 0x20001c14}
(gdb) list 166
Line number 161 out of range; ../../chibios/stable_2.4.x/os/kernel/src/chvt.c has 142 lines.
(gdb) frame 3
#3  0x0800bfc0 in i2c_lld_master_transmit_timeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 "9\302\000\000\000\303\000\000\000P\303\000\000\000", rxbytes=6, timeout=4) at i2c_lld.c:903
903       chVTResetI(&vt);
(gdb) list
898     /* Waits for the operation completion or a timeout.*/
899     i2cp->thread = chThdSelf();
900     chSchGoSleepS(THD_STATE_SUSPENDED);
901     rdymsg = chThdSelf()->p_u.rdymsg;
902     if (rdymsg != RDY_TIMEOUT)
903       chVTResetI(&vt);
904   
905     return rdymsg;
906   }
907   
(gdb) p *i2cp
$5 = {state = I2C_ACTIVE_TX, config = 0x8015bf0, errors = 0, mutex = {m_queue = {p_next = 0x20001c20,
      p_prev = 0x20001c20}, m_owner = 0x20002690, m_next = 0x0}, thread = 0x0, addr = 59, dmamode = 4234,
  dmarx = 0x8014248, dmatx = 0x801423c, i2c = 0x40005400}
(gdb) p rdymsg
$6 = 0
(gdb) p chThdSelf
No symbol "chThdSelf" in current context.
(gdb) p chThdSelf()
$7 = (Thread *) 0x20002690
(gdb) p *chThdSelf()
$8 = {p_next = 0x20000f28, p_prev = 0x20001458, p_prio = 64, p_ctx = {r13 = 0x20002764}, p_newer = 0x20001f08,
  p_older = 0x20002848, p_name = 0x8013970 "accelerometer", p_stklimit = 0x200026dc, p_state = 1 '\001',
  p_flags = 0 '\000', p_refs = 1 '\001', p_time = 10, p_u = {rdymsg = 0, exitcode = 0, wtobjp = 0x0, ewmask = 0},
  p_waiting = {p_next = 0x200026bc}, p_msgqueue = {p_next = 0x200026c0, p_prev = 0x200026c0}, p_msg = -1,
  p_epending = 0, p_mtxlist = 0x20001c20, p_realprio = 64, p_mpool = 0xffffffff}
(gdb) p vt
$9 = {vt_next = 0x20002934, vt_prev = 0x20001448, vt_time = 0, vt_func = 0, vt_par = 0x20001c14}
(gdb)


I will leave gdb connected to the target; is there anything else I can inspect or investigate? (And yes, it appears that I did compile the new version you sent me.. :-)

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 8:32 pm
by Giovanni
I found a problem with the fix, could you try this new version? sorry for all the trouble.

If this is right it was a very subtle race condition involving ISRs at different priority levels.

Giovanni

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 9:06 pm
by lmamakos
That did not seem to affect the symptoms. I've not made any other changes since looking at this problem with you other than replacing the file now twice. I have had all of the ChibiOS debugging turned on, and have dumped that out this time in the event that might provide a clue.

Code: Select all

port_halt () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore.c:48
48     port_disable();
(gdb) bt
#0  port_halt () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore.c:48
#1  0x08000d36 in chDbgPanic (msg=0x8012330 "chVTResetI(), #1")
    at ../../chibios/stable_2.4.x/os/kernel/src/chdebug.c:274
#2  0x08000e70 in chVTResetI (vtp=0x200027b4) at ../../chibios/stable_2.4.x/os/kernel/src/chvt.c:111
#3  0x0800bfc0 in i2c_lld_master_transmit_timeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 "9 \303\000\000\000@\303\000\000\0000", rxbytes=6, timeout=4) at i2c_lld.c:903
#4  0x0800a5ca in i2cMasterTransmitTimeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 "9 \303\000\000\000@\303\000\000\0000", rxbytes=6, timeout=4)
    at ../../chibios/stable_2.4.x/os/hal/src/i2c.c:206
#5  0x080110bc in AccelThread (arg=0x20001c14) at accel.c:106
#6  0x08000742 in _port_thread_start () at ../../chibios/stable_2.4.x/os/ports/GCC/ARMCMx/chcore_v7m.c:262
#7  0x080010ee in chSchGoSleepS (newstate=0 '\000') at ../../chibios/stable_2.4.x/os/kernel/src/chschd.c:125
#8  0x200028ec in ?? ()
Cannot access memory at address 0x80116
(gdb) frame 2
#2  0x08000e70 in chVTResetI (vtp=0x200027b4) at ../../chibios/stable_2.4.x/os/kernel/src/chvt.c:111
111     chDbgAssert(vtp->vt_func != NULL,
(gdb) list
106    */
107   void chVTResetI(VirtualTimer *vtp) {
108   
109     chDbgCheckClassI();
110     chDbgCheck(vtp != NULL, "chVTResetI");
111     chDbgAssert(vtp->vt_func != NULL,
112                 "chVTResetI(), #1",
113                 "timer not set or already triggered");
114   
115     if (vtp->vt_next != (void *)&vtlist)
(gdb) p vtp
$1 = (VirtualTimer *) 0x200027b4
(gdb) p *vtp
$2 = {vt_next = 0x20002934, vt_prev = 0x20001448, vt_time = 0, vt_func = 0, vt_par = 0x20001c14}
(gdb) up
#3  0x0800bfc0 in i2c_lld_master_transmit_timeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 "9 \303\000\000\000@\303\000\000\0000", rxbytes=6, timeout=4) at i2c_lld.c:903
903       chVTResetI(&vt);
(gdb) list
898     /* Waits for the operation completion or a timeout.*/
899     i2cp->thread = chThdSelf();
900     chSchGoSleepS(THD_STATE_SUSPENDED);
901     rdymsg = chThdSelf()->p_u.rdymsg;
902     if (rdymsg != RDY_TIMEOUT)
903       chVTResetI(&vt);
904   
905     return rdymsg;
906   }
907   
(gdb) p *i2cp
$3 = {state = I2C_ACTIVE_TX, config = 0x8015bf0, errors = 0, mutex = {m_queue = {p_next = 0x20001c20,
      p_prev = 0x20001c20}, m_owner = 0x20002690, m_next = 0x0}, thread = 0x0, addr = 59, dmamode = 4234,
  dmarx = 0x8014248, dmatx = 0x801423c, i2c = 0x40005400}
(gdb) p rdymsg
$4 = 0
(gdb) up
#4  0x0800a5ca in i2cMasterTransmitTimeout (i2cp=0x20001c14, addr=29, txbuf=0x2000266c "\001=", txbytes=1,
    rxbuf=0x20002660 "9 \303\000\000\000@\303\000\000\0000", rxbytes=6, timeout=4)
    at ../../chibios/stable_2.4.x/os/hal/src/i2c.c:206
206     rdymsg = i2c_lld_master_transmit_timeout(i2cp, addr, txbuf, txbytes,
(gdb) list
201                 "i2cMasterTransmitTimeout(), #1", "not ready");
202   
203     chSysLock();
204     i2cp->errors = I2CD_NO_ERROR;
205     i2cp->state = I2C_ACTIVE_TX;
206     rdymsg = i2c_lld_master_transmit_timeout(i2cp, addr, txbuf, txbytes,
207                                              rxbuf, rxbytes, timeout);
208     if (rdymsg == RDY_TIMEOUT)
209       i2cp->state = I2C_LOCKED;
210     else
(gdb) p dbg_isr_cnt
$5 = 0
(gdb) p dbg_lock_cnt
$6 = 1
(gdb) p dbg_trace_buffer
$7 = {tb_size = 64, tb_ptr = 0x200010f4, tb_buffer = {{se_time = 44292, se_tp = 0x20000f28, se_wtobjp = 0x0,
      se_state = 2 '\002'}, {se_time = 44292, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {
      se_time = 44292, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 6 '\006'}, {se_time = 44300,
      se_tp = 0x20002848, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44300, se_tp = 0x20000f28,
      se_wtobjp = 0xffffffff, se_state = 6 '\006'}, {se_time = 44301, se_tp = 0x20000fe8, se_wtobjp = 0x0,
      se_state = 0 '\000'}, {se_time = 44301, se_tp = 0x20000f28, se_wtobjp = 0xffffffff, se_state = 6 '\006'}, {
      se_time = 44302, se_tp = 0x20000fe8, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44322,
      se_tp = 0x20002690, se_wtobjp = 0xffffffff, se_state = 0 '\000'}, {se_time = 44322, se_tp = 0x20000fe8,
      se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {se_time = 44342, se_tp = 0x20002690, se_wtobjp = 0xffffffff,
      se_state = 0 '\000'}, {se_time = 44202, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {
      se_time = 44202, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 6 '\006'}, {se_time = 44212,
      se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44212, se_tp = 0x20000f28,
      se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {se_time = 44212, se_tp = 0x20002690, se_wtobjp = 0x0,
      se_state = 0 '\000'}, {se_time = 44212, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 2 '\002'}, {
      se_time = 44212, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44212,
      se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 6 '\006'}, {se_time = 44222, se_tp = 0x20002690,
      se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44222, se_tp = 0x20000f28, se_wtobjp = 0xffffffff,
      se_state = 2 '\002'}, {se_time = 44222, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {
      se_time = 44222, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 2 '\002'}, {se_time = 44222,
      se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44222, se_tp = 0x20000f28,
      se_wtobjp = 0x0, se_state = 6 '\006'}, {se_time = 44232, se_tp = 0x20002690, se_wtobjp = 0x0,
      se_state = 0 '\000'}, {se_time = 44232, se_tp = 0x20000f28, se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {
      se_time = 44232, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44232,
      se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 2 '\002'}, {se_time = 44232, se_tp = 0x20002690,
      se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44232, se_tp = 0x20000f28, se_wtobjp = 0x0,
      se_state = 6 '\006'}, {se_time = 44242, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {
      se_time = 44242, se_tp = 0x20000f28, se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {se_time = 44242,
      se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44242, se_tp = 0x20000f28,
      se_wtobjp = 0x0, se_state = 2 '\002'}, {se_time = 44242, se_tp = 0x20002690, se_wtobjp = 0x0,
      se_state = 0 '\000'}, {se_time = 44242, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 6 '\006'}, {
      se_time = 44252, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44252,
      se_tp = 0x20000f28, se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {se_time = 44252, se_tp = 0x20002690,
      se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44252, se_tp = 0x20000f28, se_wtobjp = 0x0,
      se_state = 2 '\002'}, {se_time = 44252, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {
      se_time = 44252, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 6 '\006'}, {se_time = 44262,
      se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44262, se_tp = 0x20000f28,
      se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {se_time = 44262, se_tp = 0x20002690, se_wtobjp = 0x0,
      se_state = 0 '\000'}, {se_time = 44262, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 2 '\002'}, {
      se_time = 44262, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44262,
      se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 6 '\006'}, {se_time = 44272, se_tp = 0x20002690,
      se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44272, se_tp = 0x20000f28, se_wtobjp = 0xffffffff,
      se_state = 2 '\002'}, {se_time = 44272, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {
      se_time = 44272, se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 2 '\002'}, {se_time = 44272,
      se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44272, se_tp = 0x20000f28,
      se_wtobjp = 0x0, se_state = 6 '\006'}, {se_time = 44282, se_tp = 0x20002690, se_wtobjp = 0x0,
      se_state = 0 '\000'}, {se_time = 44282, se_tp = 0x20000f28, se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {
      se_time = 44282, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44282,
      se_tp = 0x20000f28, se_wtobjp = 0x0, se_state = 2 '\002'}, {se_time = 44282, se_tp = 0x20002690,
      se_wtobjp = 0x0, se_state = 0 '\000'}, {se_time = 44282, se_tp = 0x20000f28, se_wtobjp = 0x0,
      se_state = 6 '\006'}, {se_time = 44292, se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}, {
      se_time = 44292, se_tp = 0x20000f28, se_wtobjp = 0xffffffff, se_state = 2 '\002'}, {se_time = 44292,
      se_tp = 0x20002690, se_wtobjp = 0x0, se_state = 0 '\000'}}}
(gdb)



Is there something else that I can look at here that would be useful? As this seems to be a timing dependent sort of problem, I haven't tried to modify the overall logic or eliminate other, non I2C code yet.

Thanks again for looking at this! It must be getting late there by now..

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 9:17 pm
by Giovanni
I definitely found a race condition but apparently there must be something else hidden there.

My assumption is that it is related to the timeout mechanism, probably if you increase the timeout to something like some seconds the problem would not be triggered.

I also noticed that the constant TIME_INFINITE is not correctly handled, I'll give it a closer look tomorrow :-)

Giovanni

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sat May 26, 2012 9:33 pm
by lmamakos
Thanks for looking. I'll keep a copy of the project as-is so I can test against it in the future. I think I can work around the problem with somewhat larger timeouts, at least for my purposes. I'd be happy to help get to the root cause of this since I can apparently reproduce it. Have a wonderful evening!

Re: "chVTResetI(), #1" panic from i2c_lld_master_timeout

Posted: Sun May 27, 2012 12:35 am
by lmamakos
FYI, changing the timeout on the i2c invocations to 50ms (from 4ms) seems to have avoided the problem. Note that 20ms wasn't sufficient. Hope that's helpful..