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.

IWRL6432BOOST: How to adjust the nominal rate and data bit rate for mcan?

Part Number: IWRL6432BOOST
Other Parts Discussed in Thread: AWR1642

I need to modify the nominal rate and data bit rate of mcan driver.

I look into the mcan driver source mcan.c in MMWAVE_L_SDK_05_01_00_04.

I found the MCAN_initSetBitTimeParams configure default 1Mbps and 5Mbps as nominal and data bit-rate
respectively as follows:

/* Initialize bit timings */
bitTimes->nomRatePrescalar = 0x7U;
bitTimes->nomTimeSeg1 = 0x5U;
bitTimes->nomTimeSeg2 = 0x2U;
bitTimes->nomSynchJumpWidth = 0x1U;
bitTimes->dataRatePrescalar = 0x1U;
bitTimes->dataTimeSeg1 = 0x3U;
bitTimes->dataTimeSeg2 = 0x2U;
bitTimes->dataSynchJumpWidth = 0x1U;

However, this configuration is out of my knowledge in SDK 3.5.0.0 for AWR1642.

Could someone explain to me why the above configuration set mcan to 1Mbps and 5Mbps as nominal and data bit-rate?

  • Hello, 

    Please refer to mcan driver documentation which includes bit rate calculation: C:/ti/MMWAVE_L_SDK_05_01_00_04/docs/api_guide_xwrL64xx/DRIVERS_MCAN_PAGE.html

    Documentation for bit timing parameters: C:/ti/MMWAVE_L_SDK_05_01_00_04/docs/api_guide_xwrL64xx/structMCAN__BitTimingParams.html 

    Best Regards,

    Josh