Hi, If I want to use CTRL2[RRS], how should I configure it? I'm testing whether I can receive remote frames for all ID.So I need to configure it in this way and let the CPU perform the corresponding operations. Could you provide me with an example of using CTRL2[RRS]?
Thank you.
SaLan
已解决! 转到解答。
Hi@SaLan
I not sure which MCU part number you're using right now, suppose you're using S32K1xx.
So if RRS is set to 1, the highlight explained very clear, it will be treated like data frames but will no automatic generate remote response frames.
Hi,Senlent
How can I receive it like normal data frames.
When I set RRS to 1,while(FLEXCAN_DRV_GetTransferStatus(INST_FLEX_CAN0, i) == STATUS_BUSY);not working.
I would like to know when I received this CAN frame.
And after that, I can perform operations such as making judgments.
I need a Demo for receive when RRS = 1 .
Thank you
SaLan
Hi Senlent
Thank you for your answer, which has been of great help to me.
I want to set the global mask RTR bit and IDE to receive remote frames. However, I found that using your configuration is not able to receive them.
Then, after I configured RTR=1 in the MB, I was able to only receive remote frames.
Due to the incomplete configuration of the library functions in the SDK for MB and global mask, in reality your example only performs the corresponding logical judgment based on the ID.
As shown in the figure, I used your DEMO. In fact, for both data frames and remote frames, as long as the ID is 0x105, they will be received. I think this is not very rigorous.
My suggestions are as follows:
If you want to accurately receive remote frames, the following configuration is required
Hi@SaLan
Global or Individual setting is optional.( you can take a look at this article)
https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-FlexCAN-Mask-Setting-Demo/ta-p/1519753
The demo I made only used the Global mask setting to demonstrate the configuration of RRS bit 1.