Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE
Hi
I am working with TI TMS320f280049c Controller, I have configured CANB -> RX & TX lines for communication , GPIO 16 for TXD and GPIO 17 for RXD. I am using Can_Ex1_loopback Code from C2000Ware_MotorControl_SDK_100_00_00 -> c2000ware > drivelib> f28004x example>can for testing.
The example file has CANA configured, But i have configured CANB, i have changed the settings in devices.h as well for CANB.
After Device_initGPIO(); i have added below GPIO setting for CANB RXD & TXD in cqn_ex1_loopback.c File & I am using TJA1043T as my Trans receiver.
GPIO_setMasterCore(16, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_16_CANTXB);
GPIO_setDirectionMode(16, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(16, GPIO_PIN_TYPE_STD);
// UV MCU_CAN_RXD Pin.No 55
GPIO_setMasterCore(17, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_17_CANRXB);
GPIO_setDirectionMode(17, GPIO_DIR_MODE_IN);
GPIO_setPadConfig(17, GPIO_PIN_TYPE_STD);
// UV CAN STB_N Pin.No 57
GPIO_setMasterCore(25, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_25_GPIO25);
GPIO_setDirectionMode(25, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(25, GPIO_PIN_TYPE_STD);
// UV CAN MCU_CAN_EN Pin.NO 58
GPIO_setMasterCore(26, GPIO_CORE_CPU1);
GPIO_setPinConfig(GPIO_26_GPIO26);
GPIO_setDirectionMode(26, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(26, GPIO_PIN_TYPE_STD);
// Set CAN STB_N
GPIO_writePin(25, 1);
//
// Set CAN MCU_CAN_EN
GPIO_writePin(26, 1);
//
GPIO_setPinConfig(DEVICE_GPIO_CFG_CANTXB);
GPIO_setPinConfig(DEVICE_GPIO_CFG_CANRXB);
And rest of program is unchanged !
After programming the device and enabling debug mode i can see the data getting incremented from 0 to 255 in txMsgData & rxMsgData in watch expression window but there is not data getting transmitted for RX and TX lines of the controller.
I am using an Oscilloscope to monitor and data pulses across TX and RX lines of the controller
Kindly help me with issues, that how can in see the data getting transmitted on RX and TX lines of the controller as well
Thank you
shivashankar