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/TDC1000-TDC7200EVM: #20 identifier "__SFR_FARPTR" is undefined

Part Number: TDC1000-TDC7200EVM
Other Parts Discussed in Thread: MSP430WARE

Tool/software: Code Composer Studio

HI, I use tdc1000-tdc7200evm and I created a new project using the demo code in tdc1000-tdc7200evm . When I build the project,there are some errors:

#20 identifier "__SFR_FARPTR" is undefined

I have tried the methods in https://e2e.ti.com/support/wireless-connectivity/other-wireless/f/667/p/338440/1181361 to go to msp430f5529.h file and move the line "typedef void (* __SFR_FARPTR) ()" to line 61 ( essentially moving it outside of the #ifndef SFR_8BIT) .

But it doesn't work.

And I tried the way in https://e2e.ti.com/support/tools/ccs/f/81/t/295618?CCS-V5-5-upgrade-issues :

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.

then it showed:

to build the file 'build.cfg',the project requires XDCtools . 

So I enabled XDCtools. But new error showed as : 

Can't find the target named 'ti.targets.msp430.elf.MSP430X' along the path 'C:/ti/simplelink_cc32xx_sdk_2_30_00_05/source;C:/ti/simplelink_cc32xx_sdk_2_30_00_05/kernel/tirtos/packages;C:/ti/xdctools_3_50_08_24_core_win32/xdctools_3_50_08_24_core/packages;..;': please check the spelling of the target's name and that it exists along this path.

What should I do?

  • Hello,

    I'm not sure what's causing the issue and haven't been able to replicate it. Can you provide detailed steps on how you created the project in CCS? It may be better to import the example projects into CCS workspace.

    Regarding the XDC tools error, the MSP430 does not need XDC tools like the other ARM-based devices mentioned in your second error message. I'm not sure this 'build.cfg' file is necessary . The target configuration files for MSP430 devices ends with extension ".ccxml".

    Regards,

    James
  • Hi James,

    This is the steps on how I create the project:

    1. create a new CCS project

    2.add the files and include the .h files paths :

    3. build the project:

    4. copy the driverlib in MSP430ware:

    5.click YES, the sdk and XDCtools paths are added:

    6. build the project:

    Regards,

    JIAO

  • Today I have replied to your other post.
    Import existing project a start modifying it.