LPC1549 CAN error problem.

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

LPC1549 CAN error problem.

700 Views
zakariatalebben
Contributor I

hello

i am working on an LPC1549 dev board.

i an using the CAN peripheral. the problem is when there is no a device

connected to CAN port and i send some data over the CAN port it will generate an ACK error

in the STAT register.

but i am unable to reset the STAT register, even loading it with value 0.

is there any mean to clear this register?

regards.

Labels (1)
0 Kudos
2 Replies

467 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Zakaria Taleb Bendiab,

     Actually in the LPC1549  STAT register description already give you answer.

    pastedImage_1.png

pastedImage_2.png

So, don't care about the STAT ACKerror, after you send the CAN data successfully, these errors will be cleared automatically.

Wish it helps you!

If you still have question about it, please kindly let me know!

Have a great day,
Kerry

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------

0 Kudos

467 Views
zakariatalebben
Contributor I

hello kerry

thanks for your response.

the problem is when this error is generated the error interrupt callback function

is called. the error code is 0x22.

when i send again the data nothing happens the STAT register stills the same and

i have to reset the board to clear this register.

thanks.

0 Kudos