Dinamicaly change CAN ID of the TX FULL message.

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

cross mob
bezobraznic
Level 2
Level 2
25 sign-ins 10 likes given 10 sign-ins

Hello all!

How to dinamicaly change CAN ID of the TX FULL message of CAN component?   Thanks!

0 Likes
1 Solution
bezobraznic
Level 2
Level 2
25 sign-ins 10 likes given 10 sign-ins

I found it! 

CAN_SET_TX_ID_STANDARD_MSG(i, id);  !!!

View solution in original post

0 Likes
4 Replies
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

Kindly refer to Changing CAN receiver id.

Best regards,

Sampath Selvaraj

0 Likes

No. I need to change ID of TX full message, that is allready configured in CANcomponet TX section. Thanks.

0 Likes

Hi AlMe_962021​,

You should still be able to change the ID of the Full mailbox using the AMR and ACR registers. You can directly write into the respective registers with the correct filter settings.

For example, the following code changes the filter settings of Mailbox0 as 0x003.

#define AMR (0x001FFFF9)

#define ACR (0x00600000)

CY_SET_REG32( 0x402E00B0,AMR);

CY_SET_REG32( 0x402E00B4 ,ACR);

Refer the device register TRM for the correct register location for the respective mailboxes.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
bezobraznic
Level 2
Level 2
25 sign-ins 10 likes given 10 sign-ins

I found it! 

CAN_SET_TX_ID_STANDARD_MSG(i, id);  !!!

0 Likes