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.

CC2650: CC2650lp simple peripheral IAR example compiling error

Part Number: CC2650

Dear all,

I in installed the BLE SDK to the default folder and I tried to build the simple peripheral example project. I met following errors, do you have any clue?

I am using the IAR 7.70.02 which is also the version that the examples are made. 

It seems that it met some issue when calling the cygwin1.dll.

Do you know what's the purpose for using the "C:\ti\xdctools_3_32_00_06_core/xs"? Is it necessary and can I build a simple project without it? Previously I planed to build my first project based on this one...

///////////////////////////////////////////////  below are the errors reported

Building configuration: cc2650lp_app - FlashROM
Updating build tree...
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Obj\simple_peripheral.pbi
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Obj\util.pbi
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Obj\Display.pbi
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Obj\DisplayDogm1286.pbi
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Obj\cc2650lp_app.pbd
 
5  file(s) deleted.
Updating build tree...
 
Performing Pre-Build Action
"C:\ti\xdctools_3_32_00_06_core/xs" --xdcpath="C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\tidrivers_cc13xx_cc26xx_2_20_01_10\packages;C:\ti\
tirtos_cc13xx_cc26xx_2_20_01_08\products\bios_6_46_01_38\packages" iar.tools.configuro -c "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7702\
arm" --cc "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7702\arm\bin\iccarm.exe" --device "CC2650F128" --compileOptions "-D 
BOARD_DISPLAY_EXCLUDE_UART -D CC2650_LAUNCHXL -D CC26XX -D Display_DISABLE_ALL -D HEAPMGR_SIZE=0 -D ICALL_MAX_NUM_ENTITIES=6 -D 
ICALL_MAX_NUM_TASKS=3 -D POWER_SAVING -D USE_ICALL -D xBOARD_DISPLAY_EXCLUDE_LCD -D xdc_runtime_Assert_DISABLE_ALL -D 
xdc_runtime_Log_DISABLE_ALL --diag_suppress Pa050 -o C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Obj 
--debug --endian=little --cpu=Cortex-M3 -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\
src/config/build_components.opt -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\stack\build_config.opt -f C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\config\configPkg\compiler.opt.defs -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\
cc2650lp\simple_peripheral\iar\app\..\config\iar_boundary.bdef -e --fpu=None --dlib_config \"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7702\arm\
INC\c\DLib_Config_Normal.h\" -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/controller/cc26xx/inc\ -I C:\ti\
simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/inc\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src/common/cc26xx\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\
src/examples/simple_peripheral/cc26xx/app\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/icall/inc\ -I C:\ti\
simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/inc\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src/profiles/dev_info\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\
src/profiles/roles\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/profiles/roles/cc26xx\ -I C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/profiles/simple_profile\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src/profiles/simple_profile/cc26xx\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\
..\src/target\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/inc\ -I C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/target/_common\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\
examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/target/_common/cc26xx\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\
cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/target/cc2650/rom\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src\components/heapmgr\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\
components/icall/src/inc\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/osal/src/inc\ -I C:\ti\
simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/services/src/saddr\ -I C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/services/src/sdata\ -I C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\
products\cc26xxware_2_24_02_17393\ -I C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\tidrivers_cc13xx_cc26xx_2_20_01_10\packages\ -Ohz" --linkOptions "-o C:\
ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Exe\simple_peripheral_cc2650lp_app.out --map C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\List\simple_peripheral_cc2650lp_app.map --config C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/common/cc26xx/iar/cc26xx_app.icf --keep __vector_table -f C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\config\configPkg\linker.cmd -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\config\iar_boundary.xcl C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\rom\
common_rom_releases\03282014\common_rom.symbols C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\cc26xxware_2_24_02_17393\driverlib\bin\iar\driverlib.lib 
--entry __iar_program_start --vfe" --profile release --projFile "C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\cc2650lp_app.ewp"
Using RTSC configuration file: C:/ti/simplelink/ble_sdk_2_02_01_18/examples/cc2650lp/simple_peripheral/iar/app/../config/app_ble.cfg...
      0 [main] ? (-16360) C:\ti\xdctools_3_32_00_06_core\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC488E0/0xD388E0.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      0 [main] ? (-14328) C:\ti\xdctools_3_32_00_06_core\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC488E0/0xC288E0.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      1 [main] sh 15500 fork: child -1 - died waiting for longjmp before initialization, retry -1, exit code 0xC0000142, errno 11
C:/Users/h234169/AppData/Local/Temp/make5248-1.sh: Cannot fork: Resource temporarily unavailable
C:/ti/xdctools_3_32_00_06_core/packages/xdc/bld/xdc_rules.mak:307: *** Error: Specified build configuration file '' is not found.  Stop.
js: "C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/iar/tools/configuro/Main.xs", line 133: Error: xdc.tools.configuro: configuration failed 
due to earlier errors (status = 2); 'linker.cmd' deleted.
Error while running "C:\ti\xdctools_3_32_00_06_core/xs" --xdcpath="C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\tidrivers_cc13xx_cc26xx_2_20_01_10\
packages;C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\bios_6_46_01_38\packages" iar.tools.configuro -c "C:\Program Files (x86)\IAR Systems\Embedded 
Workbench 7702\arm" --cc "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7702\arm\bin\iccarm.exe" --device "CC2650F128" --compileOptions "-D 
BOARD_DISPLAY_EXCLUDE_UART -D CC2650_LAUNCHXL -D CC26XX -D Display_DISABLE_ALL -D HEAPMGR_SIZE=0 -D ICALL_MAX_NUM_ENTITIES=6 -D 
ICALL_MAX_NUM_TASKS=3 -D POWER_SAVING -D USE_ICALL -D xBOARD_DISPLAY_EXCLUDE_LCD -D xdc_runtime_Assert_DISABLE_ALL -D 
xdc_runtime_Log_DISABLE_ALL --diag_suppress Pa050 -o C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Obj 
--debug --endian=little --cpu=Cortex-M3 -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\
src/config/build_components.opt -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\stack\build_config.opt -f C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\config\configPkg\compiler.opt.defs -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\
cc2650lp\simple_peripheral\iar\app\..\config\iar_boundary.bdef -e --fpu=None --dlib_config \"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7702\arm\
INC\c\DLib_Config_Normal.h\" -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/controller/cc26xx/inc\ -I C:\ti\
simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/inc\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src/common/cc26xx\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\
src/examples/simple_peripheral/cc26xx/app\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/icall/inc\ -I C:\ti\
simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/inc\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src/profiles/dev_info\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\
src/profiles/roles\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/profiles/roles/cc26xx\ -I C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/profiles/simple_profile\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src/profiles/simple_profile/cc26xx\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\
..\src/target\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/inc\ -I C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/target/_common\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\
examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/target/_common/cc26xx\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\
cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/hal/src/target/cc2650/rom\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\..\..\..\..\src\components/heapmgr\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\
components/icall/src/inc\ -I C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/osal/src/inc\ -I C:\ti\
simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/services/src/saddr\ -I C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\components/services/src/sdata\ -I C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\
products\cc26xxware_2_24_02_17393\ -I C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\tidrivers_cc13xx_cc26xx_2_20_01_10\packages\ -Ohz" --linkOptions "-o C:\
ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\Exe\simple_peripheral_cc2650lp_app.out --map C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\FlashROM\List\simple_peripheral_cc2650lp_app.map --config C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src/common/cc26xx/iar/cc26xx_app.icf --keep __vector_table -f C:\ti\simplelink\
ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\config\configPkg\linker.cmd -f C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\
simple_peripheral\iar\app\..\config\iar_boundary.xcl C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\..\..\..\..\..\src\rom\
common_rom_releases\03282014\common_rom.symbols C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\cc26xxware_2_24_02_17393\driverlib\bin\iar\driverlib.lib 
--entry __iar_program_start --vfe" --profile release --projFile "C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650lp\simple_peripheral\iar\app\cc2650lp_app.ewp"
 
Total number of errors: 1
Total number of warnings: 0

  • Hi, 

    Yes, XDCTools(the version that the SDK originally supports) is required to build our SDK. Have you tried following the suggestion in your build log:

    "

          0 [main] ? (-16360) C:\ti\xdctools_3_32_00_06_core\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC488E0/0xD388E0. 
    This problem is probably due to using incompatible versions of the cygwin DLL. 
    Search for cygwin1.dll using the Windows Start->Find/Search facility 
    and delete all but the most recent version.  The most recent version *should* 
    reside in x:\cygwin\bin, where 'x' is the drive on which you have 
    installed the cygwin distribution.  Rebooting is also suggested if you 
    are unable to find another cygwin DLL. 

    "

    Best wishes 

  • Hi Haq,

    It works after I reboot my computer. I have no Cygwin installed on my computer, neither there is X drive on it.

    Thank you very much.

    Best Regards