[En-Nut-Discussion] suspicious NutMsgQStopTimer and Watchdog on EIR

Wiegelmann, Jörg Joerg.Wiegelmann at ces-tronics.de
Tue Jul 15 14:39:07 CEST 2008


Hello folks,

I'm hunting since weeks an error. Sometimes (after hours) the System (Arm EIR Board) crashes with a data abort or is running endless in the loop of function NutMsgQStopTimer:

        while (pos != que->mq_write) {

           if (que->mq_que[pos].id == MSG_TIMER && que->mq_que[pos].data == t) {

               que->mq_que[pos].id = MSG_NULL;

            }

 

            pos = (pos + 1) & que->mq_mask;

       }

Now I removed the NutMsgQStop function from my application and switched to the low-Level Timer functions NutTimerStart, NutTimerStop. The callback function generates the mail. After that change it seems to be ok (I'm praying at the moment). I followed the rule never to stop an expired timer. Does anyone have experience with NutMsgQStopTimer?

By the way, does anyone know how to start the watchdog on the EIR Board with the NutOs watchdog-Api? I think it isn't implemented.

Best regards

Joerg 




More information about the En-Nut-Discussion mailing list