This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

發射XL-F2800137:can.c function question

Part Number: LAUNCHXL-F2800137
Other Parts Discussed in Thread: SYSCONFIG

What is the means of "base" in function "CAN_sendMessage" and "CAN_readMessage"?

I import the CAN example of can_ex1_loopback, and use CAN Tool to check like below.

If I want to change CAN ID to "0x12FFF012",how can I set .

  • "base" in function

    It stores the base address for the CAN module, and the function calls only include offsets to calculate the addresses of the relevant registers. The base addresses are available in the file "hw_memmap.h"

    If I want to change CAN ID to "0x12FFF012",how can I set

    The example in question uses Sysconfig (GUI for initial configuration). Go to can_ex1_loopback.syscfg in CCS, and within the GUI, under the Message Object 1 (to modify transmit message object), the field Message identifier can be updated. On building the project, the corresponding code will be automatically generated. All other examples are without sysconfig, and there the CAN_setupMessageObject() function parameters can be updated to set desired CAN ID. 

    Thanks.