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.

AWR1843AOP: AWR1843AOP: CANFD Pinmux Configuration Change – No CAN Messages on Alternate Pins

Part Number: AWR1843AOP

Tool/software:

Hello TI Team,

I am using the AWR1843AOP radar and have successfully flashed the Medium Range Radar (MRR) demo. By default, the CANFD data transmission was configured on:

  • CANFD_TX: SOC_XWR18XX_PINE14_PADAE

  • CANFD_RX: SOC_XWR18XX_PIND13_PADAD

I confirmed that CAN messages are correctly received on these default pins.

Objective:


I want to re-route the CANFD communication to different pins:

CANFD_TX::SOC_XWR18XX_PINB4_PADBR (Ball B4)

CANFD_RX: SOC_XWR18XX_PINA4_PADBS (Ball A4)

According to pinmux_xwr18xx.h, these are the respective mappings:


Code Modifications Made by me: 

In Can_Initialize() inside mss_main.c, I commented out the default pinmux configuration:

and Then, I added:

// CANFD_ TX
Pinmux_Set_OverrideCtrl(SOC_XWR18XX_PINB4_PADBR, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
Pinmux_Set_FuncSel(SOC_XWR18XX_PINB4_PADBR, SOC_XWR18XX_PINB4_PADBR_CAN2_FD_TX);

// CANFD_ RX
Pinmux_Set_OverrideCtrl(SOC_XWR18XX_PINA4_PADBS, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
Pinmux_Set_FuncSel(SOC_XWR18XX_PINA4_PADBS, SOC_XWR18XX_PINA4_PADBS_CAN1_FD_RX);

issue:
After making these changes, no CAN messages are received on the new pins (Ball B4 and A4).

Question:
Is there any additional configuration required  to route it through these alternate pins on the AWR1843AOP?

Kindly let me know if any further changes are needed to get CANFD working on these alternate pins.

Thank you,

Mitesh

  • HI,

    Let me review your question and get back to you next week.

    thank you
    Cesar

  • Hi,

    There was an issue with the pinmux header files for AOP. 

    Please see below if this helps

    thank you
    Cesar

    (+) [FAQ] AWR6843AOP: mmWave SDK PinMux AWR1843AOP and AWR6843AOP - Sensors forum - Sensors - TI E2E support forums

  • Hello Cesar,

    I have added the suggested pinmux header file for the AWR1843AOP at the following path:
    C:\ti\mmwave_sdk_03_05_00_04\packages\ti\drivers\pinmux\include

    In my application, I attempted to use Ball B4 as CANFD_TX and Ball A4 as CANFD_RX. I configured the pins using the following code:


    // modified codes 

    Pinmux_Set_OverrideCtrl(SOC_XWR1843AOP_PINB4_PADBR, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
    Pinmux_Set_FuncSel(SOC_XWR1843AOP_PINB4_PADBR, SOC_XWR1843AOP_PINB4_PADBR_CANFD_TX);

    Pinmux_Set_OverrideCtrl(SOC_XWR1843AOP_PINA4_PADBS, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
    Pinmux_Set_FuncSel(SOC_XWR1843AOP_PINA4_PADBS, SOC_XWR1843AOP_PINA4_PADBS_CANFD_RX);


    However, after applying these changes, the CAN interface does not receive any messages when using these pins (A4 and B4).

    Could you please confirm if these pins are valid for CANFD functionality on the AWR1843AOP and whether any additional configuration is required?

    Thank you for your support.






     

  • Hi

    I checked the datasheet and the configuration should be valid. You should be able to use the B4/A4 for Tx. 

    By default this pins are used for GPIO43

    Before using these pins for CANFD you can test the GPIO output to make sure it works as expected

    You can modify the GPIO driver test example to do that

    C:\ti\mmwave_sdk_03_06_02_00-LTS\packages\ti\drivers\gpio\test\xwr18xx\main.c

    I hope this helps

    Thank you
    Cesar

  • Thank you for your response.

    I configured the pins A4 and B4 (GPIO_44 and GPIO_43) as GPIO outputs. After setting and resetting these pins, I observed the following behavior:

    • When set, the pins output approximately 3.3V

    • When reset, the pins output approximately 0.3V

    This confirms that I am successfully able to configure and control these pins as GPIOs. and it means my hardware is correct.

    However, I noticed that the macros defined for configuring these pins for CANFD functionality (CANTX and CANRX) both have the same value: in the file pinmux_xwr1843AOP.h


    #define SOC_XWR1843AOP_PINB4_PADBR_CANFD_TX             5U    /*< */
    #define SOC_XWR1843AOP_PINA4_PADBS_CANFD_RX            5U    /*<*/

    Could you please confirm whether these macro definitions for CANFD configuration are correct?

    Thanks
    Mitesh Singh


  • Hi,

    Yes this information is what is available.

    Could you run the CAN-FD unit test to check if it works?

    C:\ti\mmwave_sdk_03_06_02_00-LTS\packages\ti\drivers\canfd\test\xwr18xx\main.c

    You would need to select "MCAN_APP_TEST_EXTERNAL_LOOPBACK"

    What application are you working on?

    Thank you

    Cesar

  • Hi,

    I have successfully received CAN-FD messages using the default pins D1 and F2, as configured in the example project located at:
    C:\ti\mmwave_sdk_03_06_02_00-LTS\packages\ti\drivers\canfd\test\xwr18xx\main.c
    This setup is currently working within the MRR application.

     I have configured A4 and B4 pins using the same Pinmux_Set_OverrideCtrl and Pinmux_Set_FuncSel function as shown in the above example, and I’ve already shared the relevant code for this setup in my previous reply.

    but I did not get message on these pins (A4/B4).

    Regarding your question — I am working on the Medium Range Radar (MRR) application on the AWR1843AOP, with only the MRR mode enabled.

    I would appreciate your guidance on how to proceed with enabling CAN-FD communication over the A4 and B4 pins in this context.

    Thanks
    Mitesh

  • Hello Cesar,

    i found this thread "(+) AWR1843AOP: CAN-FD pinmux on pins A4/B4: datasheet inaccuracy? - Sensors forum - Sensors - TI E2E support forums"

    related to same problem for the PIN A4 /B4. 

    you are in the chain of the message. I think you have the solution for this.

    Thanks
    Mitesh

  • Hi,

    I reviewed the message. 

    It just provides the following pins for CAN-FD but it still does not confirm if A4/B4 can be used for CAN-FD.

    I have seen other older threads that seem to indicate that A4/B4 are not working with CAN-FD.

    I need to check with design team. This will take some time. Will get back to you next week

    thank you
    Cesar

    1. CAN Instance #1 – CAN-FD
      1. TX – D1
      2. RX – F2
  • Hi,

    I talked with the Design Team and it seems that the Datasheet is not correct.

    The A4/B4 pins are not for CAN-FD but CAN only.

    This is consistent with the behavior you have noticed.

    thank you
    Cesar