I'm using RL 78 (R5F10BAC) to transmit and receive the CAN messages.
When I try to transmit the messages it's working fine.
While receiving the CAN message, buffer is not getting updated. Below I've mentioned the code for your reference.
CAN0_Tx(can_id, data_len ,data);
CAN0_Tx(can_id1, data_len ,Trsn_buffer);
In the CAN0_Rx() function (can.c) , the below mentioned register value is not being updated.So conditon is never true.
RFSTS0L &= 0xF7; // CLEAR RFIF flag
if((RFSTS0L & 0x01) != 0x01)
Please help to solve the issue!!
Thanks in advance.
Thanks for reaching out to Renesas Engineering Community.
You cannot write '1' to bits 2 and 3 of RFSTSm register.
Also, you cannot write to bits 0,1,4-7. They are read only.