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.

TMS320F28388D: Could you check macro values for mcan ?

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi experts,

We might find a bug setting on

C2000Ware_3_04_00_00

driverlib\f2838x\driverlib_cm\inc\hw_mcanss.h(1877): #define MCAN_DBTP_DSJW_MAX

#if 0 // original, 
#define MCAN_NBTP_NSJW_MAX (0xFU)
#define MCAN_NBTP_NTSEG2_MAX (0xFU)
#define MCAN_NBTP_NTSEG1_MAX (0x1FU)
#define MCAN_NBTP_NBRP_MAX (0x1FU)


#else // our fixed values
#define MCAN_NBTP_NSJW_MAX (0x7fU)
#define MCAN_NBTP_NTSEG2_MAX (0x7fU)
#define MCAN_NBTP_NTSEG1_MAX (0xffU)
#define MCAN_NBTP_NBRP_MAX (0x1ffU)
#endif

Could you please check correct setting ?

Best regards,

Hidehiko

  • Hi,

    These values are wrong in the driverlib and have been corrected for the next C2000Ware release.

    Please use below values.

    #define MCAN_DBTP_DSJW_MAX (0xFU)
    #define MCAN_DBTP_DTSEG2_MAX (0xFU)
    #define MCAN_DBTP_DTSEG1_MAX (0x1FU)
    #define MCAN_DBTP_DBRP_MAX (0x1FU)

    #define MCAN_NBTP_NSJW_MAX (0x7FU)
    #define MCAN_NBTP_NTSEG2_MAX (0x7FU)
    #define MCAN_NBTP_NTSEG1_MAX (0xFFU)
    #define MCAN_NBTP_NBRP_MAX (0x1FFU)

    Regards,

    Yaswhwant