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!!