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.

MSP432P4111: Header File Changes in MSP432 SDK

Part Number: MSP432P4111

Hi Team,

Posting for our customer. They would like to ask some information on changes made from v3230 to 3231 of the msp432p4111.h header file in the MSP432 SDK v3.40.01.02.

They are specifically interested in why some base addresses in the header files are now signed integers. (i.e. the "U" has been removed). They following MISRA rules and this actually gives warnings when writing low level drivers for an MSP432P4111.

Thanks in advance!


Kind Regards,

Jejomar

  • Hi Jejomar,

    Let me look into this.

  • Hi Jejomar,

    I'm looking at SDK SDK v3.40.01.02, msp430p4111.h.

    #define __MSP432_HEADER_VERSION__ 3231

    I'm not finding any register that is defined as an (int16_t) vs (uint16_t) or (int32_t) vs (uint32_t).

    Were you able to locate an instance?  Can the customer be specific where in the header file?

  • Hello Dennis,

    Many thanks for looking into this. Our customer is looking specifically at the UCA3 UART module and in the msp432p4111.h file version 3.40.01.02, the base address is defined as:

    #define EUSCI_A3_BASE (PERIPH_BASE +0x00001C00)

    where
    #define PERIPH_BASE ((uint32_t)0x40000000)

    It seems that even though the peripheral address uses uint32_t, the lack of a "U" on the UART base address causes a MISRA-C 2004 warning.

    The following prevents a warning:
    #define EUSCI_A3_BASE (PERIPH_BASE +0x00001C00U)

    They're thinking that the U was present in a previous version of the msp432p4111.h file and was changed in the latest revision.

    They would want to avoid modifying the header file but also if there was a "U" previously in this header file, it would be very good for us to know why it was removed. Can you help us find the version 3230 of this msp432p4111.h header file?


    Kind Regards,

    Jejomar

  • Hi Jejomar,

    Got it.  Let me reach out to SW team.

  • Hello Jejomar,

    According to our SW team reports the following:

    Is it possible the previous file mentioned by the customer was modified manually? I found the alleged version 3230 and I even went to the older version available in the git SDK, and none have the register bases declared with ‘U’.

    You’re right, the MSP432 SDK did not run MISRA-C. And I agree, looking at previous versions of PERIPH_BASE and EUSCI_A3_BASE in msp432p4111.h, it doesn’t look like those register bases were ever declared with ‘U’, so perhaps the customer was using their own copy of that file.

  • I agree with Dennis. 

    It's difficult to know what happened to the version you mention, but we don't have records of such file. Here's the version 3230 mentioned by Dennis:

    msp432p4111.h

    Regards,

    Luis R

  • I agree with Dennis. 

    It's difficult to know what happened to the version you mention, but we don't have records of such file. Here's the version 3230 mentioned by Dennis:

    6136.msp432p4111.h

    Regards,

    Luis R