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]MCAN config

Other Parts Discussed in Thread: TDA4VM

Hi,

Now we have some TDA4VM/J721EX boards and 06_01_00_15 sdk.

We have some questions about MCAN demos in psdk_rtos_auto_j7_06_01_00_15/pdk/packages/ti/csl.

In the pdk/packages/ti/csl/example/mcan/mcanEvmLoopback/mcan_evm_loopback_app_main_k3.c, in the function "App_mcanConfig()", it use MCAN_init、MCAN_config、MCAN_setBitTime to config MCAN.

-1-

Here, it configs the MCAN as CANFD mode, if we want to config it as classical CAN, what should we modify?

I think we should change the .fdMode to 0x0U, and what else should we change?

I found the registers of MCAN in the TRM file, initParams.fdMode determines the NISO in the MCAN_CCCR field. But I can't understand the meanings of others registers.

Can you provide us a set of configuration parameters to set classical CAN mode?

-2-

Then we found the configuration of bit rate, and we don't know how to change the values if we want to change the bit rate. We don't know the meanings of the values.

We found the NBTP and DBTP registers, but we can't understand the meanings of the registers and don't know how to change the values.

And what is the difference between nominal and data bit-rate?

Can you provide us a formula to calculate the values of bitTimes when we want to change the bit rate?

  • Hi Subin,

    Please refer to PDK API Guide for more details about MCAN configuration parameters and their corresponding values for various modes.

    For bit rate related calculations, please refer 

    Please refer to the 'MCAN Functional Description' section in the MCAN chapter in the TRM for bit timing-related configurations.

    Thanks & Regards,
    Vivek Dhande.

    Texas Instruments (India) Pvt Ltd