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.

TDA4VM: TDA4VMXEVM - Can initialization sequence

Part Number: TDA4VM

Hello TI support, 

We are creating an Can application in Autosar environment that send and receive Can frames.

We are using the mcusw_01_03_00_10 and pdk_jacinto_07_01_05_14.

 As example we use the file mcusw\mcal_drv\mcal\examples\Can\soc\j721e\mcu1_0\CanApp_Startup.c.

Before Can_Init API is executed we call CanApp_PlatformInit function to set the Pin and also the CanTrcv as is in the example.

We see that Can_Write is executed but we don't see any frame that are send. In Can configuration we use MCU_MCAN0 and we use the Can_0_Int0ISR interrupt.

To connect the PcanView is used the J30 from the board like is specify in documentation.

I saw different Can example in Sdk e.g. in mcan_evm_loopback_app_main_k3.c where is initialize the I2C.

Can you please let me know if we have to configure something else except the one that are present in CanApp_Startup.c?

CanTrcv will be initialize only with CanApp_EnableTransceivers function or we need to add other code?

  • Hi,

    We see that Can_Write is executed but we don't see any frame that are send. In Can configuration we use MCU_MCAN0 and we use the Can_0_Int0ISR interrupt.

    1. Is the ISR getting getting triggered?

    2. Is the setting on the PCAN correct? Are you configuring for the correct data and nominal bit rate?

    3. Is the PCAN CANH, CANL and GND connected correctly to MCU MCAN0 trvc's CANH, CANL and GND respectively?

    I saw different Can example in Sdk e.g. in mcan_evm_loopback_app_main_k3.c where is initialize the I2C.

    The MAIN MCAN0 and MCAN2's transceivers are connected to I2C expanders on the EVM and hence I2C is needed to configure those, not MCU MCAN0 and 1.

    Can you please let me know if we have to configure something else except the one that are present in CanApp_Startup.c?

    The example you are referring is by default an internal loopback example. Did you change the code or you are using the same? In internal loopback mode the message will not be sent on the wire, The signal doesn't come out of the SoC's PAD.

    Regards,

    Karan

  • HI,

    Thank you, we resolve this issue.

    BR,

    Ionut

  • Hi Ionut,

    Can you please confirm what the issue was?

    Regards,

    Karan