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.

CCS V5.5 upgrade issues

Other Parts Discussed in Thread: MSP430F5659, MSP430WARE, MSP430F5529, MSP430FR5969

Hello,

I just upgraded to CCS V5.5.0.00077 and now all my projects give me multiple errors:

       #20 identifier "__SFR_FARPTR" is undefined

I haven't touched my project settings.  Am compiling for MSP430F5659 large model and using the only compiler from which to choose -  TI v4.2.1

Has anyone else experienced this error?  I can't find any reference to it in TI's forums nor on a google search.

Mark Rush

  • Hi Mark,

    Please check your compiler version:

     http://processors.wiki.ti.com/index.php/Compiler_Installation_and_Selection#CCStudio_5

    Also, all your include paths and revert.

    Regards,

    Gautam

  • Gautam,

    Thanks for your reply.

    This was a clean install and the only compiler that came with this version of CCS is 'TI v4.2.1'.  At least, that's the only choice that is allowed under 'Build Settings'

    This project was developed under CCSv5.4 with no errors.  When I installed CCSv5.5, I simply pointed it to the old workspace and tried to recompile.  That's when I got the errors.

    I then tried setting up a clean workspace under 5.5 and 'import'ing the project into the new workspace.  Same issues.

    And yes, I'm sure that it is some sort of include path issue, but I cannot find any template in the installed base for __SFR_FARPTR to include.

    Any guidance would be appreciated.

    Mark Rush

  • Mark Rush1 said:

    This project was developed under CCSv5.4 with no errors.  When I installed CCSv5.5, I simply pointed it to the old workspace and tried to recompile.  That's when I got the errors.

    I then tried setting up a clean workspace under 5.5 and 'import'ing the project into the new workspace.  Same issues.

    Are these errors coming from the compiler, (ie) do you see them in the CCS build console and Problems view? If so could you send us your project so we can reproduce the issue and investigate if it is a bug? You can zip up the project folder and attach it here.

  • Yes, these errors are appearing in the console window and in the 'Problems' list window.

    I've tar'd up the project.  Where would you like for me to send it?

    Thanks,

    Mark Rush

  • Mark,

    You could attach the project to this forum thread. Or if you'd like to pass it privately I can send you a friend request, and after you accept, you can start a private converation with me and send it that way.

  • Definitely private, please.

    Thanks.

  • For the benefit of others following along, the error could be fixed by replacing the header file msp430f5659.h in CCS 5.5 with the one from CCS 5.4.

    We will follow up with the MSP430 team (who provides these files) as to why the newer file is causing an issue.

  • Mark,

    I am able to reproduce this. Aside from the workaround that Aarti suggested, you can download the latest msp430ware v1.60 from www.ti.com/msp430ware and replace your driver library files. It looks like they made some minor changes inside CCSv5.5 header files which broke some support on older versions of MSP430ware. I think this would be a cleaner fix.

    Regards,

    William

  • William,

    Can you please clarify what you mean by 'replace your driver library files'.  At last check I had 270 folders named 'driverlib' under my ti installation folder.  What does this mean???

     

    Frankly I am quite dissapointed with the fact that TI.com distributes sample code that won't even BUILD...

    KD

  • Ken,

    We are definitely striving to make the software ecosystem better. Obviously this fell through the cracks.

    Ken Daniels said:
    Can you please clarify what you mean by 'replace your driver library files'.  At last check I had 270 folders named 'driverlib' under my ti installation folder.  What does this mean???

    1. Navigate to the latest version of MSP430ware driverlib. Which can be found as part of CCSv5.5 and generally located at this folder:

    <ccs_install_folder>\ccsv5\ccs_base\msp430ware_xxxx\driverlib\

    2. Copy the driverlib source

    3. Paste it to your project and replace the driverlib files that was created in an older version of CCS.

    Regards,

    William

  • Also, you guys changed the directory structure with this version of msp430ware, so if you were using relative links (so that if you update msp430ware, it won't break everything), it still breaks the compile.  (The problem is that driverlib is repeated in the MSP430ware_1_60_02_09 folder...all the folders you need are in driverlib/driverlib)

    So anyone grabbing the new msp430ware to fix the __SFR_FARPTR problem, beware that you'll have shuffle the folders around to get them to work

  • I tried Ken's fix, and the __SFR_FARPTR error has been fixed; however, now I have a slew of different errors and warnings.

    #5 could not open soruce file "deprecated/CCS/msp430xgeneric.h"

    A bunch of random "LPMx" and "LPMx_EXIT" macro redefined warnings.

    Is TI planning on issuing a fix for the problems introduced by the latest updates to CCS?

    Update:  I have attempted to fix a few errors, but it seems I have a bunch of #48-D errors that don't seem to make sense. There are often two errors that appear at once and are located in random files, often in comment sections.

  • I was able to fix the error; however, I had to update the definitions of LPMx and LPMx_EXIT in "msp430f5xx_6xxgeneric.h" to match those in "msp430f5659.h"

  • Dear Willian,

    I use "Help>Install New Software" then choose "MSP430Ware Updates" on CCS to get MSP430Ware 1.80.1.03. But the errors still occurred.

    What step I missed? (My CCS Version is 5.5.0.00077 and I import NFCLink to be executed on MSP-EXP430F5529LP.)

    William Goh said:

    I am able to reproduce this. Aside from the workaround that Aarti suggested, you can download the latest msp430ware v1.60 from www.ti.com/msp430ware and replace your driver library files. It looks like they made some minor changes inside CCSv5.5 header files which broke some support on older versions of MSP430ware. I think this would be a cleaner fix.

  • I am also getting these errors.. Can someone please verify a fix? My Errors and warnings are as follows:

    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 133: warning #48-D: incompatible redefinition of macro "LPM0" (declared at line 124 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 134: warning #48-D: incompatible redefinition of macro "LPM0_EXIT" (declared at line 125 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 135: warning #48-D: incompatible redefinition of macro "LPM1" (declared at line 126 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 136: warning #48-D: incompatible redefinition of macro "LPM1_EXIT" (declared at line 127 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 137: warning #48-D: incompatible redefinition of macro "LPM2" (declared at line 128 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 138: warning #48-D: incompatible redefinition of macro "LPM2_EXIT" (declared at line 129 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 139: warning #48-D: incompatible redefinition of macro "LPM3" (declared at line 130 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 140: warning #48-D: incompatible redefinition of macro "LPM3_EXIT" (declared at line 131 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 141: warning #48-D: incompatible redefinition of macro "LPM4" (declared at line 132 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 142: warning #48-D: incompatible redefinition of macro "LPM4_EXIT" (declared at line 133 of "C:\ti\msp430\NFCLink_1.0.0.1\driverlib\MSP430F5xx_6xx\deprecated/CCS/msp430xgeneric.h")
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 970: error #20: identifier "__SFR_FARPTR" is undefined
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 972: error #20: identifier "__SFR_FARPTR" is undefined
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 979: error #20: identifier "__SFR_FARPTR" is undefined
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 981: error #20: identifier "__SFR_FARPTR" is undefined
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 988: error #20: identifier "__SFR_FARPTR" is undefined
    "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h", line 990: error #20: identifier "__SFR_FARPTR" is undefined

  • You can try the file shuffling solutions above, or just put the following at the top of the file that's generating the error:

    typedef void (* __SFR_FARPTR)();

  • Hi!
    I'm having the same troubles with a clean installation of CCS V6.2. The errors occure in the "msp430fr5969.h".
    Replacing the files with the newest available, does not fix the problem.


    Regards,
    Benjamin

    EDIT:

    Ok, i've had a missing ";" in a custom header file, that caused this error. Suspicious...