Hi,
core mcu1_0 sdk:8.6.1.3
There are 32 CAN sending mailboxes on j721s2. Now we want to determine whether the mailbox is busy or idle before filling the mailbox. However, after reading the relevant codes and registers, I am not sure which register or function interface is used to read the status of the mailbox. Is there any functional interface in the SDK that can read the status of the sending mailbox? Or please tell me which register is used to read the mailbox status. Thank you!
I tried to read the MCAN_TXBAR register before and after calling the can_write function, but found that the values read out were all 0.
In addition, I read out the MCAN_TXBAR register immediately after writing 1, and found that the value read out was also 0. I am not sure whether it is because the mailbox has been idle at this time, so I need to determine how to get the mailbox status
Best regards,
Bingxian