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.

Can't Build SPPBLEServer/Client[Stack]

Other Parts Discussed in Thread: CC2640, CC2650

Hi,

I've been trying to build the "SPPBLEServer" Application and Stack and "SPPBLEClient" Application and Stack unsuccessfully and I can't figure out why it blocks.

Here is the message that I have in my build console for SPPBLEServerStack:

"../cc26x0f128.cmd", line 74: error #10263: FLASH memory range has already been specified
"../cc26x0f128.cmd", line 74: error #10264: FLASH memory range overlaps existing memory range FLASH
"../cc26x0f128.cmd", line 76: error #10263: SRAM memory range has already been specified
"../cc26x0f128.cmd", line 76: error #10264: SRAM memory range overlaps existing memory range SRAM

I've carefully followed the guide TIDU997 [made by Haq Zahid (thanks by the way ;)]  to unzip and move the files in the SDK and imported the projects via Project > Import CCS Projects. I've checked "copy into the workspace", changed the Properties of the project to match my device: "CC2650F128" with "...XDS110 USB Debug Probe" Connection.

But doesn't seem to be helping.

a litlle help, plz ;)

  • Hi Victor,

    Let me try to replicate this issue. I'll get back to you
  • Victor,

    Are you using the RF06EM boards or the sensortag?
  • I was able to build without error using CCS. Be sure you're using BLE stack v2.0. We have not yet ported this design to v2.1 yet.
  • Yes, you will have to use v2.0 for now, we will update this project to V2.1 of the BLE Stack soon.

  • Hello,

    Thanks for your answers. ;)

    I'm using a SensorTag with BLE Stack V2.0...

    Here is the complete log on the Console for the SPPBLEServerStack when I try to build:

    'Invoking: ARM Linker'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" --cmd_file="C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/SPPBLEServerStack/../../IAR/Stack/CC2640/../../../../../config/buildComponents.opt" --cmd_file="C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/SPPBLEServerStack/../../IAR/Stack/CC2640/buildConfig.opt" -mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --define=USE_ICALL --define=FLASH_ROM_BUILD --define=POWER_SAVING --define=INCLUDE_AES_DECRYPT --define=xPM_DISABLE_PWRDOWN --define=xTESTMODES --define=xTEST_BLEBOARD --define=OSAL_CBTIMER_NUM_TASKS=1 --define=xDEBUG --define=HALNODEBUG --define=xDEBUG_GPIO --define=xDEBUG_ENC --define=xDEBUG_SW_TRACE --define=NEAR_FUNC= --define=DATA= --define=CC26XXWARE --define=CC26XX --define=ccs --define=__TI_COMPILER_VERSION=1 --define=DEBUG --diag_wrap=off --diag_suppress=48 --diag_warning=225 --display_error_number -z -m"SPPBLEServerStack.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --reread_libs --display_error_number --diag_suppress=16002-D --diag_suppress=10247-D --diag_suppress=10325-D --diag_wrap=off --warn_sections --xml_link_info="SPPBLEServerStack_linkInfo.xml" --entry_point=startup_entry --rom_model --unused_section_elimination=on --compress_dwarf=on -o "SPPBLEServerStack.out" "C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/Config/ccsLinkerDefines.cmd" "C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/common/cc26xx/CCS/cc26xx_ble_stack.cmd" "./TOOLS/OnBoard.obj" "./Startup/CommonROM_Init.obj" "./Startup/ICall_startup.obj" "./Startup/OSAL_ICallBle.obj" "./Startup/ROM_Init.obj" "./Startup/bleUserConfig.obj" "./PROFILES/gap.obj" "./PROFILES/gapbondmgr.obj" "./PROFILES/gattservapp_util.obj" "./OSAL/OSAL.obj" "./OSAL/OSAL_Clock.obj" "./OSAL/OSAL_MemoryICall.obj" "./OSAL/OSAL_PwrMgr.obj" "./OSAL/OSAL_Timers.obj" "./OSAL/osal_bufmgr.obj" "./OSAL/osal_cbtimer.obj" "./OSAL/osal_snv_wrapper.obj" "./ICallBLE/bleDispatch.obj" "./HAL/Target/CC2650/_common/mb_PATCH.obj" "./HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj" "./HAL/Target/CC2650/Drivers/hal_rtc_wrapper.obj" "./HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj" "./HAL/Target/CC2650/Drivers/pwrmon.obj" "./HAL/Common/hal_assert.obj" "../cc26x0f128.cmd" -l"libc.a" -l"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/SPPBLEServerStack/../../IAR/Stack/CC2640/../../Lib/CC2640Stack.a" -l"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/SPPBLEServerStack/../../IAR/Stack/CC2640/../../Lib/CC2640Stack_HCI_TL.a" -l"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/SPPBLEServerStack/../../IAR/Stack/CC2640/../../../../../../common/BLE_ROM_Releases/04242014/ble_rom_PATCH.symbols" -l"C:/ti/tirtos_simplelink_2_11_01_09/products/cc26xxware_2_20_06_14829/driverlib/bin/ccs/driverlib.lib"
    <Linking>
    "../cc26x0f128.cmd", line 74: error #10263: FLASH memory range has already been specified
    "../cc26x0f128.cmd", line 74: error #10264: FLASH memory range overlaps existing memory range FLASH
    "../cc26x0f128.cmd", line 76: error #10263: SRAM memory range has already been specified
    "../cc26x0f128.cmd", line 76: error #10264: SRAM memory range overlaps existing memory range SRAM
    error #10008-D: cannot find file "C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/SPPBLEServerStack/../../IAR/Stack/CC2640/../../Lib/CC2640Stack.a"
    error #10008-D: cannot find file "C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SPPBLEServer/CC26xx/CCS/SPPBLEServerStack/../../IAR/Stack/CC2640/../../Lib/CC2640Stack_HCI_TL.a"

    undefined first referenced
    symbol in file
    --------- ----------------
    ResetISR

    error #10234-D: unresolved symbols remain

    warning #10062-D: entry-point symbol "ResetISR" undefined
    >> Compilation failure
    error #10010: errors encountered during linking; "SPPBLEServerStack.out" not built
    gmake: *** [SPPBLEServerStack.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • Well... I've resolved my errors about the Lib/CC2640Stack... this one was easy.
    FYI: This Lib directory doesn't exist in the .zip package so I just had to copy the directory Lib with the *.a files from another BLE project (SimpleBLEPeripheral in my case) into the IAR directory.


    but errors about memory and undefined ResetISR are still blocking.
    I'm looking around in the forum for similar issues to fin answers.
  • I've found my solution.

    I just had to remove the Linker Command File cc26x0f128.cmd in Properties > General

    Thanks for your quick answers! 

  • Victor,

    Glad to hear you were able to resolve your problem. I am curious as to the steps you took to apply the patch though since I was unable to replicate your compiler issue. It may be useful to other forum users if you'd like to share.