Is there a way to set the CAN ID from software rather than via Configuration from schematic.

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

cross mob
dodo_4647966
Level 1
Level 1

I need to dynamically configure the CAN controller ID at init time via software. Not able to see an API call that does this.

Thanks!

0 Likes
1 Solution
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

Yes, you can use CAN_TxBufConfig() or/and CAN_RxBufConfig() functions. For more details see component datasheet and how they are used in can.c (in CAN_RxTxBuffersConfig() function) file from Generated_Source.

View solution in original post

2 Replies
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

Yes, you can use CAN_TxBufConfig() or/and CAN_RxBufConfig() functions. For more details see component datasheet and how they are used in can.c (in CAN_RxTxBuffersConfig() function) file from Generated_Source.

BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi dodo_4647966​,

In addition to LiDo_2439176 points, we believe what you are looking for is a basic mail box. Please refer to CAN_Basic_P4_Example and CAN_Full_P4_Example code example. PSoC Creator > File > Code Example

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes