The Receive Buffer Full Flag(RXF) is bit 0 in MSCAN Receiver Flag Register (CANRFLG).
After the CPU has read that message from the RxFG buffer in the receiver FIFO, the RXF flag must be cleared to release the buffer.
For details, please see section 14.3.2.5 in data sheet:
http://cache.freescale.com/files/microcontrollers/doc/data_sheet/MC9S12XHZ512.pdf
And MC9S12XHZ512 compiler supports sprintf function, please include the head file <stdio.h>.
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------