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.

Using CCSV6.1 with BLE stack V2.0 for CC2650.

Other Parts Discussed in Thread: CC2650, CC2640, SYSBIOS

curently working on CC2650 and as part of toolchain i have downloaded the CCS v6.1 and BTLE stack V2.0 and then install them and able to build the projects in CCS and also flash the .out file to the target using the XDS on board debugger(smartRF06 Evaluation board).
but when i try to debug the same application downloaded the control never reaches to the main and when i tend to suspend the debug session i see the message like:
No Source available for "This code is built for CC26xx HWRev22 and later_HaltfViolated()". does this mean the HW revision of the SOC i am using is not compatible to the CCS supporting?

And also how do i confirm on the hardware revision currently i am working?
thanks

  • Anil,

    it seems that you are using pre-release silicon.


    You can check your chip revision using Flash Programmer 2 or SmartRF Studio7.

    With the BLE SDK you find release notes (default location: file:///C:/ti/simplelink/ble_cc26xx_2_00_00_42893/README.html)

    Following the passage that deal with hardware:

    Hardware Notes
         - This release can be used on all CC2640 silicon versions. By default, all projects are configured to support only silicon produced in February 2015 or later.  However, it is possible to build software which supports all (including pre-release) silicon at the expense of flash space and power consumption.
         - To support all silicon,  change the CC26XXWARE argument variable path to C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_00_xx_yyyy
         - To support silicon produced in February 2015 or later only (as is the default configuration), change the CC26XXWARE argument variable path to C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_20_xx_yyyy
         - Note that software built for silicon produced in February 2015 or later can not run on pre-release silicon.
    Hope this helps!
    Best regards,
    Marc
  • Marc,

    verified my HWRev using flash programmer it displays 2.1, and as you mentioned I have changed the path to support the pre-release silicon, but still I am facing the same issue as before.

    thanks.
  • Description on how to modify this in CCS is found here:

    http://e2e.ti.com/support/wireless_connectivity/f/538/t/404236

    .:svend

  • Marc,

    Tried with the solution you have provided by changing the path for variable CC26XXWARE to C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_00_06_14829, and observed the build error like:

    "C:/ti/tirtos_simplelink_2_11_01_09/products/cc26xxware_2_00_06_14829/inc/hw_chip_def.h", line 178: fatal error #35: #error directive: "Specified chip hardware revision does not match DriverLib release".

    thanks.

  • Anil, it works for me!
    Can you double-check that you followed all the instructions from the link Svend shared PLUS doing a full rebuild of the project.

    Regards,
    Marc
  • Anil,

    Which project are you working on? This is caused by a compiler define incompatible with your current library that shouldn't be in the project settings any more. You are using the RTM release, right?

    You can go to project properties -> Build->ARM compiler->Advanced Options->Predefined symbols
    Look for CC2650F128RGZ**** (e.g. CC2650F128RGZ_R22) and try to remove it. If this doesn't work, try replacing it with CC2650F128RGZ_R21 or CC2650F128RGZ_R20.

    BR,
    Svend
  • Svend,

    Yeah, now I have modified my predefined symbol which was existing as CC2650F128RGZ to CC2650F128RGZ_R21 as my chip revision was 2.1. so after this modification i am able to build the project successfully. after that i have flashed the App and stack, but when i launch the debug session I don't see any control reaches to main ( as my project setting for debugger is like control should reach main after every reset ).

    and also even if I don't launch the debug session and try to run my code by giving power cycle after flash is done, it does not work.

    thanks,

    Anil

  • Did you flash the app last? This is the image containing main(). If yes, where are you stuck when halting the debugger+

    :.Svend
  • Svend,

    when I halt the debugger, the following gets displayed.

    No source available for "ti_sysbios_hal_Hwi_HwiProxy_Object__delete__S__mangled__() at C:/ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\CCS\SimpleBLEPeripheral\FlashROM\SimpleBLEPeripheral.out:{3} 0x1001bbd8{4}"

    thanks,
    Anil.
  • Anil,

    You have ended up in the Cortex M3 exception handler in ROM for some reason.
    Did you do any changes to the original project since you also had this define in there?

    Regards,
    Svend
  • Svend,

    As an initial step i have taken the original project with out any modifications other than:
    1. change the soc type to CC2650
    2. change the CC26XXWARE path to older version support (C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_00_06_14829)
    3. changed the predefined macro CC2650F128RGZ to CC2650F128RGZ_R21

    thanks,
    anil
  • Hi Anil,
    Were you able to overcome this issue? I'm in exactly the same spot working with Rev 2.1 (awaiting 2.2)
    Dave
  • Dave,

    Now it works for me.

    For APPLICATION:

    1. Modify the path for CC26XXWARE variable under Project properties -> Resources -> Linked Resources as per your silicon revision. For 2.1 version your path should be "C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_00_06_14829". In case you are using the later silicon revision path doesn t require any modification.

    2.Modify the target settings as per requirement(CC2650) under Project properties -> General-> Main tab and also change the platform under RTSC tab.

    3. And also modify the pre-processor macro CC2650F128RGZ to CC2650F128RGZ_R21 under Project properties -> build -> ARM compiler -> Advanced Options -> Pre defined symbols. Note that this macro will not be existing initially, and will be generated when you build the application and then you can rebuild to be successful.

    For STACK:

    1. Modify the path for CC26XXWARE variable under Project properties -> Resources -> Linked Resources as per your silicon revision. For 2.1 version your path should be "C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_00_06_14829". In case you are using the later silicon revision path doesn t require any modification.

    2. No changes are required related to target platform, leave it as it is.

    3. check whether the pre build and post build commands are existed. if existing, the build will be successful.

    4. if the pre and post build commands are missing, just place the commands :

    pre build:

    ${ORG_PROJ_DIR}/../../../../../simplelink/ble_cc26xx_2_00_00_42893/Projects/tools/LibSearch/libSearch.exe ${ORG_PROJ_DIR}/buildConfig.opt ${ORG_PROJ_DIR}/../../../../../simplelink/ble_cc26xx_2_00_00_42893/Projects/tools/LibSearch/parameters.xml ${ORG_PROJ_DIR}/../../../../../simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Libraries/CC26xx/IAR/ ${ORG_PROJ_DIR}/../../Lib/CC2640Stack.a FlashROM

    Post Build:

    "${CG_TOOL_HEX}" -order MS --memwidth=8 --romwidth=8 --intel -o "${ProjName}.hex" "${ProjName}.out"
    "C:\Program Files (x86)\Texas Instruments\Boundary\Boundary.exe" -prj "ccs" -chip "CC2650" -lcf "${ORG_PROJ_DIR}/../../../../../simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/common/cc26xx/CCS/cc26xx_ble_stack.cmd" -map "${PROJECT_LOC}/${ConfigName}/${ProjName}.map" -xml "C:\Program Files (x86)\Texas Instruments\Boundary\BoundaryConfig.xml" -cc "${ORG_PROJ_DIR}/../../../CCS/Config/ccsCompilerDefines.bcfg" -lnk "${ORG_PROJ_DIR}/../../../CCS/Config/ccsLinkerDefines.cmd"

    The pre and post builds tabs were found under project properties -> Build -> Steps tab.

    hope this will be helpful.

    thanks,

    Anil.

  • Hi! Anil,
    I am from China. Now my ccs said an error
    No source available for "ti_sysbios_hal_Hwi_HwiProxy_Object__delete__S__mangled__() at F:/ccs V6 workspace\SensorTag\FlashROM\SensorTag.out:{3} 0x1001bbd6{4}"
    I set the IDE as your method,but it also can't debug,when it running in the function of BIOS_start() ,the sensortag(CC2650) will go die,and said an error above words.
    sorry my English is very poor...
    Could you give some help under this circumstance?
    CCS V6.1 sensortag Rev1.2 ble stack Rev2.0
    In return,I can teach you Chinese or something you will interested in. ; D
    My Email: makercly@foxmail.com
    Best resgards !