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.
Hi Zakaria Taleb Bendiab,
Actually in the LPC1549 STAT register description already give you answer.
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!
----------------------------------------------------------------------------------------------------------------------
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.