Hi,
there is nothing possible to say from your description. Is it immediate status at the beginning or it happens during Tx.
As a first approach for CAN debugging I use loop-back mode to be sure the CAN is correctly working at the MCU. Then I try to use it to communicate with other nodes. Sometimes I also use communication between two CANs at the same MCU without transceiver. (requires a few diodes and resistors) This approach then helps me to localize source of the issue easier.
So from the beginning.
1) Communication related: Have you read the error messages? Are you sure the last messages has been sent?
2) Setup related: What is the transceiver RxTx delay and line delay [us/m]?
I have attached an example code , uses 4MHz oscclk, CAN0 in loopback mode, data Tx/Rx are sent to SCI, 8bit, 9600bps.
Please , test only it is working to be sure the CAN peripheral is OK. (There are some dditional excel files as a part of the project attached, only as an example)
Best regards,
Ladislav