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.

Compile error in GPIO.xs no property named 'devicePinSetting'

Other Parts Discussed in Thread: MSP430FR5739, MSP430WARE

 I downloaded CCS v6. I am trying to build a project that was created by someone else, using CCS v6. The build fails as shown:

**** Build of configuration Debug for project TS2 ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all

'Building file: ../main.cfg'

'Invoking: XDCtools'

"c:/ti/xdctools_3_30_05_60_core/xs" --xdcpath="c:/ti/grace_3_00_02_64/packages;C:/ti/msp430/MSP430ware_1_97_00_47/driverlib/packages;C:/ti/msp430/MSP430ware_1_97_00_47/driverlib;c:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.msp430.elf.MSP430X -p ti.platforms.msp430:MSP430FR5739 -r debug -c "c:/ti/ccsv6/tools/compiler/msp430_4.3.3" -Dxdc.cfg.tsort.policy=fast -Dxdc.cfg.gen.metadataFiles=false -Dxdc.cfg.SourceDir.verbose=7 --compileOptions "-vmspx --abi=eabi --include_path=\"c:/ti/ccsv6/ccs_base/msp430/include\" --include_path=\"c:/ti/ccsv6/tools/compiler/msp430_4.3.3/include\" --advice:power=all -g --define=__MSP430FR5739__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --printf_support=minimal " "../main.cfg"

making package.mak (because of package.bld) ...

generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

configuring main.xe430X from package/cfg/main_pe430X.cfg ...

js: "C:/ti/grace_3_00_02_64/packages/ti/mcu/msp430/csl/gpio/GPIO.xs", line 82: XDC runtime error: ti.catalog.msp430.peripherals.gpio_grace3.GPIO_MSP430FR5739_35_31_29_25_21.Instance#0: no property named 'devicePinSetting'

"C:/Users/Bob/workspace_v6_0/TS2_Smart_Sensor_v0.2503/main.cfg", line 16

"./package/cfg/main_pe430X.cfg", line 183

gmake.exe: *** [package/cfg/main_pe430X.xdl] Error 1

Warning: directory "C:/ti/msp430/MSP430ware_1_97_00_47/driverlib" on package path has a "packages" subdirectory - did you mean this instead?

js: "C:/ti/xdctools_3_30_05_60_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

gmake: Target `all' not remade because of errors.

**** Build Finished ****

I am guessing that I have the wrong include path, but I do not see where it is wrong.

I do not see a header file included in GPIO.xs. This does not seem like C code.

  • This looks like the project was originally built using an older version of the 'grace' product.

    Can you determine which version of 'grace' was installed in the CCS6 installation used to build the application?.

    Alan

  • I think that the project was originally built using Grace 2.20.2.32. I am not sure why that matters.

    I downloaded CCS v6.0.1. It did not come with Grace, so I downloaded grace3.0.2.64 from the App Center. I created a new project using CCS v6.0.1. I copied in the main.c and the main.cfg files. When I build the project, I do not see any errors for missing include files.

  • It could have been that you needed to do a 'clean' before. It seemed that there were stale references to the GPIO.devicePinSetting field that no longer exists in the newer grace products.
  • I did a clean build with the same results.
    Is it possible to download the older Grace version ?
  • I've looked around the TI websites and it appears that the only way to obtain an older version of Grace is by downloading an older version of CCS (ie 5.1).

    I've asked a colleague to have a look at this thread and give me advice.

    Alan
  • I'm not hopeful about obtaining an older version of Grace. But this Release Note from 3.0 may be helpful to you:


  • That command line did not execute.

    What combination of PATH and environment variables need to be present ?

    I added XDCTOOLS_JAVA_HOME=C:\Program Files (x86)\Java\jre7. Something seems to be missing.

    C:\Users\Bob\Documents>c:\ti\xdctools_3_30_05_60_core\xs c:\ti\grace_3_00_02_64\packages\ti\mcu\msp430\grace\convertCfg

    MSP430FR5739 main.cfg

    js: "C:/ti/xdctools_3_30_05_60_core/packages/xdc/xdc.tci", line 348: xdc.service
    s.global.XDCException: xdc.PACKAGE_NOT_FOUND: c:\ti\grace_3_00_02_64\packages\ti
    \mcu\msp430\grace\convertCfg\package.xdc found along the package path, but no schema file was found.Ensure that the package 'c:\ti\grace_3_00_02_64\packages\ti\mcu\msp430\grace\convertCfg' is completely built.

  • That command line did not work.

    What combination of PATH and environment variables need to be present for this to work ?

    This is what I get when I try to run.
    C:\Users\Bob\Documents\project>c:\ti\xdctools_3_30
    _05_60_core\xs c:\ti\grace_3_00_02_64\packages\ti\mcu\msp430\grace\convertCfg MS
    P430FR5739 main.cfg
    js: "C:/ti/xdctools_3_30_05_60_core/packages/xdc/xdc.tci", line 348: xdc.service
    s.global.XDCException: xdc.PACKAGE_NOT_FOUND: c:\ti\grace_3_00_02_64\packages\ti
    \mcu\msp430\grace\convertCfg\package.xdc found along the package path, but no sc
    hema file was found. Ensure that the package 'c:\ti\grace_3_00_02_64\packages\t
    i\mcu\msp430\grace\convertCfg' is completely built.
  • Robert,

    Here are the instructions from within the convertCfg package's readme.txt file:

    - This utility converts Grace 2 cfg files to Grace 3 format.
    - It only works for MSP430FR5xx devices.
    - It is an XDC xs script, which runs from the DOS cmd prompt.
    - The following environment variables must be set as follows

    XDCPATH
    <grace install dir>/packages

    XDCROOT
    <xdctools install dir>

    - To run it, from a DOS cmd prompt:
    xs ti.mcu.msp430.grace.convertCfg <device name> <cfg file>

    Example:
    xs ti.mcu.msp430.grace.convertCfg MSP430FR5739 main.cfg

    - The old cfg file will be retained in <old file name>_Grace2

    Alan
  • Robert,

    Try this command line:

    c:\ti\xdctools_3_30_05_60_core\xs ti.mcu.msp430.grace.convertCfg MSP430FR5739 main.cfg

    The arg for the convertCfg tool must be the qualified package name instead of a directory path.

    Regards,

    Joe

  • I think that worked. It created a new main.cfg file and the main.cfg_Grace file.

    I had to add the following environment variables to the CMD window:

    set PATH=%PATH%;c:\ti\xdctools_3_30_05_60_core

    set XDCTOOLS_JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_25

    set XDCPATH=C:\ti\grace_3_00_02_64\packages

    set XCDROOT=c:\ti\xdctools_3_30_05_60_core.

    Thank you for your help.

    I am disappointed that an Integrated Development Environment requires DOS environment variables.