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.

PROCESSOR-SDK-DRA8X-TDA4X: Using CAN-Ethernet Gateway demo to test CAN

Part Number: PROCESSOR-SDK-DRA8X-TDA4X

Hello, we are analyzing TDA4 SoC CAN and Ethernet capabilities as a base for developing new custom platform.

Hence we only have TDA4 EVM board, we want to test CAN  capabilities using CAN-Ethernet gateway demo explained here:
software-dl.ti.com/.../Can_Eth_Gateway_Demo.html

Can you help us to modify source in CAN-Eth demo / EthFw, so we can use MAIN_CAN0 and MAIN_CAN2 on J27 and J28 connectors available on EVM board?

We found in psdkra/gateway-demos/can_eth_gateway/src/can_process.c some confugurations regarding MCAN4 and MCAN9 that are used for this demo, but cannot figure how to properly configure demo to use different MCAN interfaces?

Also, can you explain how is this demo supposed to work, where is it initialized on the board? We havent found any step to start the demo on the board?

Regards,
Uros

  • Hi Uros,

    Apologies for the delayed reply. There was some issue with the notifications.

    To switch CAN instances you need to follow these steps..

    1. Register interrupts for the instance to be used

    2. Modify configuration to add config for controller and mailboxes for that controller (loop back is functional at this point)

    3. Configure pinmux for Tx and Rx.

    4. Configure Transceiver.

    You can take a look at mcusw/mcal_drv/docs/drv_docs/ug_can_top.html for reference.

    Regards

    Vineet