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.

LAUNCHXL-F280049C: Some question about the CAN BUS GPIO Setting

Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE

Hello, I am using LAUNCHXL-F280049C for CANBUS communication development
I have built a complete CANBUS communication system
In my environment, a logic analyzer is connected to GPIO33 (RX) and GPIO32 (TX) to receive CAN bus data, and a CAN BUS Analyzer is connected to CAN_H and CAH_L on the PAD.
But I want to change TX Pin to GPIO_31 and RX  Pin to GPIO30. But I have some trouble.

My settings are as follows:

GPIO_setPinConfig(DEVICE_GPIO_CFG_CANRXA);
GPIO_setPinConfig(DEVICE_GPIO_CFG_CANTXA);

#define DEVICE_GPIO_PIN_CANTXA 31U                                             // GPIO number for CANTXA
#define DEVICE_GPIO_PIN_CANRXA 30U                                            // GPIO number for CANRXA
#define DEVICE_GPIO_CFG_CANRXA GPIO_30_CANA_RX               // "pinConfig" for CANA RX
#define DEVICE_GPIO_CFG_CANTXA GPIO_31_CANA_TX                // "pinConfig" for CANA TX

#define GPIO_31_CANA_TX 0x00081E01U
#define GPIO_30_CANA_RX 0x00081C01U

After setting, my CAN can't work normally
And found that the CAN_CTL_INITBUG flag is raised


Do you have any suggestions can provide?

Thanks a lot!!

  • Hi Sean,

    When you switched the CANRX/TX GPIO30/31, did you also make wiring modifications to the launchpad?  Note that in the launchpad, CANRX/TX are hardwired to GPIO33/32 for the CAN transceiver.

    Regards,

    Joseph

  • Dear Joseph,
    Thanks for your reply, I understand the wiring of the launchpad, But I want to test to get TX signal through GPIO31, With the correct settings, I should be able to see the TX signal through J6_54 on the launchpad. I can't see the output of TX with an oscilloscope. It maintains a high level, I think I may have missed some settings that caused it to enter the INITBUG state?

  • Hi Sean,

    Can you clarify below items for me?

         - With the original CAN channel assignment,  you were able to observe the signal on GPIO33 CANTX pin, correct?

         - Just changing the CAN channels from GPIO33/32 to GPIO30/31, the code fails.

    Which of the example codes in C2000Ware are you running, or have you written your own code and if so, can you describe what your code does?

    Thanks,

    Joseph

  • Hi Joseph,

    I found a problem with hardware circuits, The problem has been solved successfully, Thank you for your suggestions and reminders!!!

    Best Regards

    Sean