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.

Updated Header File Incompatible

Other Parts Discussed in Thread: MSP430FR5949

Hello all,

I am currently developing with MSP430FR5949 using CCSv6.1.1 (recently updated from 6.1.0)  and MSPGCC.  Everything has been going great until yesterday, my code compiles with 80 errors.  Apparently, the 2016 version of msp43fr5949.h defines things quite differently from the 2015 version I've been working with.

What's more, I checked the install logs and it looks like the change occurred on January 29th!  The compiler didn't even notice this until Febuary 29th!

The macros in the 2016 header seem to be having their own problems.  The right-click, Open Declaration points to an unrelated line of code, hovering over a macro displays something nonsensical, i.e. hovering over CSCTL0 in msp430fr5949.h and the yellow pop-up shows "ADC12CTL0".

It looks like the header file is messed up to me, but could this be a CCS problem?

Go Internet go!

  • Hi Mark,

    Could you tell me what the version number is for the file? You should something similar to the following in your msp430fr5949.h file:

    /********************************************************************
    *
    * Standard register and bit definitions for the Texas Instruments
    * MSP430 microcontroller.
    *
    * This file supports assembler and C development for
    * MSP430FR5949 devices.
    *
    * Texas Instruments, Version 1.4
    *
    * Rev. 1.0, Setup
    * Rev. 1.1  updated PxSELC register address to offset 0x16 (instead of 0x10)
    *           replaced Comperator B with Comperator E
    * Rev. 1.2  fixed typo in SYSRSTIV_MPUSEG defintions
    *           replaced COMP_B with COMP_E
    * Rev. 1.3  removed not available PxDS Register definitions
    * Rev. 1.4  replaced NACCESSx with NWAITSx
    *
    ********************************************************************/

    With my version of the file I don't seem to be having the same issue that you are having with Open Declarations or hovering over macros. Have you tried running some of the example code to see if you're having issues with that? Also, would you be able to provide the code that you are trying to compile?

    Regards,

    Akash Patel

  • Hello Akash and thank you for the quick response.

    The title sections in both headers are identical --they both say Version 1.4,  but scrolling down they are indeed different.  Well, it looks like the whole file is attached as an image?  Why?  Whatever, this is how we'll have to do this then.

    My source is too complex to post here, besides I have isolated the problem by switching out these two files and observing the issue at hand.

    Take a look at the differences between the ADC12 sections, they're not far below the title section.  What happened here?

    2016 msp430fr5949.h

    msp430fr5949.h

    2015 msp430fr5949.h

    2275.msp430fr5949.h

  • Ha, okay so it is not an image. That process is maybe a bit misleading.
  • Hi Mark,

    I just opened the two files you attached and both appear to be the same (perhaps you attached the same one twice on accident) and also my file looks similar to yours. Could you highlight the differences by referencing specific line numbers or including some of the code in this thread? What types of errors are you getting?

    Regards,
    Akash Patel

  • Hmmm, I see both of those files say 2015 at the top.  How did that happen?  Okay, I'm not at work anymore so I will have to find a 2016 copy and upload it here.

    Alright, I cannot even find the 2016 version.  The most recent mspgcc package is a beta version (!) but the header file has the same reorganization as my problem 2016 version.  Akash, please compare this file to a previous one.

    7870.msp430fr5949.h

    So what is going on here?  CCS updated my mspgcc headers to a version newer than the published beta release???  

  • Hi Mark,

    Thanks for attaching that file. There do seem to be some differences between this file and the other one. I just moved the thread into the CCS forum to see if we can get some better clarity from the folks on here.

    Regards,
    Akash Patel
  • Hi,

    I suspect you are running into the issue reported in the thread below.

    e2e.ti.com/.../1781371

    (edit) I just saw your last include file, and it matches with the one I have that is postmarked 2016 and is part of a device update released recently by the MSP group. In this case, this is the same issue as reported in the thread above.

    Regards,
    Rafael

  • Alright, mystery solved. Thanks desouza and Akash. I'll have to agree with Markus Rudolf from the other post, the header/linker restructure was a bit sneaky. Where would a person find the change documentation for things like this in the future?