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.

TMS570LC4357: CAN3 Rx / Tx pins configurable as general purpose IO pins

Part Number: TMS570LC4357
Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN,

Hi,

I am using TMS570LC4357 Launchpad Board with CCS v7.3 and Halcogen 4.07. I am trying to convert CAN3 pins(DCAN3RX - M19  & DCAN3TX - M18)as GPIO pins but not able to control it.. But it working in TMS570LS3137 HDK. Even i can able to convert CAN2 pins as GPIO pins . But it is not working for CAN3.

  • Hi Vinayaka,

    The CANRX and CANTX pins can be sued as GPIO pins. This function is controlled by the DCAN TIOC and DCAN RIOC registers.
    The bit 3 of these two register should be cleared to zero.

    The CAN3 TX is routed to Pin 15 of J10, and CAN3 RX signal is routed to Pin 13 of J10.
  • Dear QJ,

    I tried it but still it is not working. I have done following changes in canInit() function

    /** - CAN3 Port output values */
    canREG3->TIOC = (uint32)((uint32)1U << 18U )
    | (uint32)((uint32)0U << 17U )
    | (uint32)((uint32)0U << 16U )
    | (uint32)((uint32)0U << 3U )
    | (uint32)((uint32)0U << 2U )      //Before it was 1
    | (uint32)((uint32)0U << 1U );

    canREG3->RIOC = (uint32)((uint32)1U << 18U )
    | (uint32)((uint32)0U << 17U )
    | (uint32)((uint32)0U << 16U )
    | (uint32)((uint32)0U << 3U )  
    | (uint32)((uint32)0U << 2U )     //Before it was 1
    | (uint32)((uint32)0U << 1U );

  • Hi Vinayaka,

    The Func bit in RIOC and TIOC register should be set for GIO mode. Please check those two registers after executing canInit() if the Func bit is cleared.