LPC11C24: C_CAN on-chip drivers: lost incomming message

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC11C24: C_CAN on-chip drivers: lost incomming message

550 Views
shigeuratan
Contributor II

Hi.

I'm using LPCXpresso LPC11C24 rev B board and writing simple CAN target with C_CAN on-chip driver (without interrupts).

Today, I noticed that sometimes LPC11C24 loses incoming CAN message.

LPC_CCAN_API->can_receive() returns zero in spite of CAN bus analyzer records a correct frame.

It seems that this problem is timing critical, there is no problem almost all time.

But near LPC_CCAN_API->can_transmit(), near sending frame from LPC11C24,

above problem will occur.

(like can_transmit() may clear receive-flag by mistake at the end of his procedure...)

Does anyone have info about this ?

or have similar experience ?

    /*      * my LPC11C24      *   +-------------+      *   | LPC11C24F   |      *   | P  /301     |      *   | X  56.106   |      *   | N  ZSD11    |      *   |    131AY    | year 11, week 13, Rev.A      *   +-------------+      *      | Dev.ID:  0x1430102B      *      | B.L.Ver: 7.1      */
Labels (1)
0 Kudos
0 Replies