RTR

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Murali1
Level 1
Level 1
10 questions asked 10 sign-ins First like given

We understood the concept but we are not able to configure RTR bit in code can you please explain how to configure RTR bit to reeive Remote frame in generated CAN_NODE_0. 

0 Likes
1 Solution
sujatapatil
Moderator
Moderator
Moderator
50 solutions authored 10 likes received 100 sign-ins

Hi Murali,

Do you see RXPND is set? If yes then please check below setting is enabled ?

 CAN_MOFCRn.RMM = 1;

Thanks

Sujata

 

View solution in original post

0 Likes
3 Replies
sujatapatil
Moderator
Moderator
Moderator
50 solutions authored 10 likes received 100 sign-ins

Hi @Murali1 

Please refer  https://www.infineon.com/dgdl/Infineon-MultiCAN-XMC4000-AP32300-AN-v01_00-EN.pdf?fileId=5546d4624e76... (page 16/ 17, transmit/receive process) you can find the registers need to be set in order to send /receive remote frames.

Below call will enable RTR frame receive,

CAN_NODE_MO_ClearStatus(HandlePtr1->lmobj_ptr[2], XMC_CAN_MO_SET_STATUS_RX_ENABLE | XMC_CAN_MO_SET_STATUS_MESSAGE_DIRECTION)

 

Thanks

Sujata

Murali1
Level 1
Level 1
10 questions asked 10 sign-ins First like given

CAN_NODE_MO_ClearStatus(HandlePtr1->lmobj_ptr[2], XMC_CAN_MO_SET_STATUS_RX_ENABLE | XMC_CAN_MO_SET_STATUS_MESSAGE_DIRECTION)

Above API is also used ,it set DIR bit but still i am not able to Receive RTR request  is there any configuration to receive remote frame(RTR) .  

0 Likes
sujatapatil
Moderator
Moderator
Moderator
50 solutions authored 10 likes received 100 sign-ins

Hi Murali,

Do you see RXPND is set? If yes then please check below setting is enabled ?

 CAN_MOFCRn.RMM = 1;

Thanks

Sujata

 

0 Likes