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.

CCS6.2 with BLE Stack 2.2 Example Project

Other Parts Discussed in Thread: CC2650, CC2650STK, BLE-STACK

Hi,

i downloaded the new CCS6.2 version 50 and install BLE Stack 2.2.

The CCS6.2 Resource Explorer doenst import the BLE STack 2.2 examples into it.

So i went and imported per hand to my workspace.

Problem is that i can flash the stack for example and afterwards i cannot flash anything anymore.

If i import the examples from the resource explorer it works fine.

I used the flash programmer 2 and program the .hex files from stack-app-bim and that worked.

So i think there is something wrong with CCS6.2

I also did the workaround from the 4.8 version and replace the .dll file provided from TI.

Is there any issue know about CCS6.2 version 50 and BLE Stack 2.2 example projects?

So this is the error getting from the app:

Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
Cortex_M3_0: GEL Output: Board Reset Complete.
Cortex_M3_0: Error occurred during flash operation: Timed out waiting for target to halt
Cortex_M3_0: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.407.6)
Cortex_M3_0: Flashloader unable to erase sector 1 (code 4096). Sector may be locked - try mass erase operation.
Cortex_M3_0: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.407.6)

I went and flash the same .hex file from app with flash programmer 2 and it worked:

>Initiate access to target: XDS-L3000850.

>Reading file: C:/Users/michael/workspace_v6_2/app/FlashOnly_OAD/app.hex.

>Start flash erase ...

>Erase finished successfully.

>Start flash programming ...

>Programming finished successfully.

>Start flash verify ...

>Skip verification of unassigned page: 0.

>Page: 1 verified OK.

>Page: 2 verified OK.

>Page: 3 verified OK.

>Page: 4 verified OK.

>Page: 5 verified OK.

>Page: 6 verified OK.

>Page: 7 verified OK.

>Page: 8 verified OK.

>Page: 9 verified OK.

>Page: 10 verified OK.

>Page: 11 verified OK.

>Page: 12 verified OK.

>Page: 13 verified OK.

>Skip verification of unassigned page: 14.

>Skip verification of unassigned page: 15.

>Page: 16 verified OK.

>Page: 17 verified OK.

>Verification finished successfully.

>Reset target ...

>Reset of target successfull.

  • Hey Michael,

    The workaround you're talking about is the one mentioned here right? e2e.ti.com/.../543297

    Let me do a fresh install to make sure everything is working right,

    Regards,

    -Rebel
  • Hi Rebel,

    yes i downloaded the .dll and replace that file in the installation directory.
    Thanks for your help.
    Can you try to flash like sensortag cc2650 or launchpad with the BLE Stack 2.2 examples too.

    Regards,

    Michael
  • So i started again by following this work arround know issue:

    Known Issues / Workarounds for BLEv2.2.0  

    I also change the compiler to version TI v15.12.3.LTS and got this error messages still:

  • I had no issues doing SimplePeripheral on both Sensortag and Launchpad - I'll try some other examples. Also one thing to note is that I didn't have to apply the patch to CCS 6.2 to flash/debug. (I used the webinstaller and downloaded CCS 6.2)

    In regards to your errors, did you try changing the target board? It looks like CCS may have included the linker command file twice. Check this by right clicking on your project and looking at General. Under Advanced settings, clear the field for Linker Command File, it's automatically included; you don't need to have that field populated.

    I'll give the sensortag project a shot in a bit, *EDIT* Just tried, and it's fully functional - Can you tell me what version of the CC26xx Device Support is listed on your CCS 6.2? (Help -> About -> Installation Details)

    Regards,

    -Rebel

  • Hi Rebel,

    i have the CC26XX Device Support version 2.0.1.00 installed. The target board arent changed and the linker command file is empty. So there is only one linker and not twice on the project.
    Are the examples you tryied from the BLE Stack 2.2?

    Did you import it manually to CCS? On Resource explorer i have also examples but from older stack and they all work too like this one:

    Bu i want to use the project examples from BLE Stack 2.2 from here:

  • Hi Rebel,

    did you use BLE Stack 2.2 examples? Doed it work for you?
  • Hi Michael,
    Yeah, I used BLE Stack 2.2 examples - and I did manually import them. (not from the cloud)
    Perhaps it's machine set up that's the difference? What OS are you running on? Did you Download CCS from the webinstaller? (Or a zip?)
    -Rebel
  • Hi Rebel,

    i downloaded as zip file and my OS is Windows 10.

    Did you import it manually and did the work around too?

    Which workaround have you done?

    Did you imported as copy to your workspace?

    I will uninstall it and install with the webinstaller and install BLE Stack 2.2 again.

    Regards,

    Michael

  • Hi Michael,

    My OS is Windows 7, I used the web installer - didn't have to do any workaround/fix.

    So no workaround was applied - everything was able to build just fine and debug/flash.

    When I imported, I did copy in to workspace -

    Let me check with some coworkers to find out if anyone has tested this out on Win10 and if they had to do anything special (I hope not!).

    Regards,
    -Rebel
  • Hi Rebel,

    so just to make sure, you download CCS 6.2 version 50 from here processors.wiki.ti.com/.../Download_CCS
    and you download BLE Stack 2.2 from here: www.ti.com/.../ble-stack
    You install CCS 6.2 and what do you choose in the installation? What did you choose there?
    On the BLE Stack installation i didnt had anything to select, it did all automatically.

    Thank you,

    Michael
  • Hey Michael,
    Just did both - during my CCS installation I chose to only install Simplelink and MSP stuff. I didn't install any of the App Center stuff (MSPWare, etc)
    Only few changes I had to make were to make sure that CCS found TI RTOS. (I wanted to have as clean a start as possible and just deleted my TI folder) - not sure why it didn't pick it up automatically. (Window-> Preferences -> Code Composer Studio -> Products and clicked Rediscover)
    Other than that - I did change the build for the sensortag to be FlashOnly(edit* Flash_ROM)instead of OAD. (I had done that for the previous builds, but failed to mention it) Also I had to exclude sensortag_oad.c/.h from build.
    Everything still works on my end - there has to be something we're missing here
    Regards,
    -Rebel

  • Hi Rebel,

    so i delete TI folder now and install CCS 6.2 version 50 again and choose simple link to install.

    I install BLE Stack 2.2 again and import the project into workspace but didnt copy it.

    First thing it gave me a warning that the project was created with compiler TI v5.2.6  and it is not installed, it will build with TI 15.12.3.LTS compiler instead.

    And this warning:

    Description Resource Path Location Type
    Invalid project path: Duplicate path entries found (/sensortag_cc2650stk_app [Include path] isSystemInclude:true includePath:C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/tidrivers_cc13xx_cc26xx_2_16_01_13/packages), path: [/sensortag_cc2650stk_app]. sensortag_cc2650stk_app pathentry Path Entry Problem

    On configuration -> build i have only two options "Flash_Only_OAD" or "Flash_ROM". 

    So i went and build the project and it gave me no error except those two warnings.

    Now i did try to flash my sensortag with app and stack and it gave me for both this error:

    Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
    Cortex_M3_0: GEL Output: Board Reset Complete.
    Cortex_M3_0: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.407.6)
    Cortex_M3_0: File Loader: Memory write failed: Timed out waiting for target to halt
    Cortex_M3_0: GEL: File: C:\ti\simplelink\ble_sdk_2_02_00_31\examples\cc2650stk\sensortag\ccs\app\FlashOnly_OAD\sensortag_cc2650stk_app.out: Load failed.
    Cortex_M3_0: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.407.6)

    And this message:

    Looks like the flash XDS110 debugger is not working on CCS 6.2 version 50.  I used Flash programmer 2 to flash stack and app .hex files and that worked.

    Which compiler do you used ?

    Did you use Windows 10 or 7 in this time?

  • Michael,

    The last go was done with Windows 7 - and I actually installed v5.2.6 from the directions in the guide. (Shouldn't matter though)

    Give it one last shot: deleted ti folder -> installed CCS6.2 -> Installed SDK (+RTOS + XDS tools) -> Manually installed TI ARM 5.2.6 -> Manually Imported SensorTag example -> Changed Build Config to FlashROM -> Excluded sensortag_oad.c -> debug+build stack and app

    It worked just fine. My guess here is that there's something going on with old XDS settings persisting between installs. (Because I noticed that every time I open up my old workspace, I'd need to rediscover my newly installed RTOS + XDS tools to properly build)

    Either way, I don't believe this is an issue with the Stack Examples - I believe this issue is related to the xdstools and is more appropriate for their forum (e2e.ti.com/.../355

    Regards,
    -Rebel

  • Hi Rebel,

    where can i download TI ARM 5.2.6 compiler?

    I did everthing you did but still the same errors. Have you try on windows 10?

  • Hi Michael,

    Section 2.6.3.2 of the Software Developer's Guide has the procedure for this. (And pictures!)

    In regards to the errors, I still see the same errors you do - only difference between the compiler version I observed was that in the newer compiler versions will need the stack limit adjusted. This doesn't occur in the Recommended compiler. Other than that, the examples work as they are supposed to. (From SLA)

    *Edit - And I currently don't have access to a windows 10 Machine to test on at the moment! Sorry


    Regards,
    -Rebel

  • Hi Michael, I saw your post in the "BLE-STACK V2.2.0 is now available with full BT4.2 support!"-thread.

    The compiler is not located under Arm Compiler Tool Update. To install TI ARM version 5.2.6 in CCS, press Help/Install New Software. Work with: Code Generation Tools Updates and uncheck the "Show only the latest versions of available software" - box.

  • Hi Marie, Hi Rebel,

    i download and install the compiler 5.2.6 and change the project to FlashROM but i am getting the same errors as before.
    So i will have to donwload an older version like CCS 6.1.2 that worked before.

    Thanks,

    Michael
  • Hi guys,

    i found the problem. I think my sensortag and xds110 debugger are damaged.
    I connected my launchpad and could flash the BLE Stack 2.2 with no problem.
    I disconnect the cc2650 from the on board xds110 and connect the sensortag via cable and got no response with same error messages.
    Connected the external XDS110 to my cc2650 on launchpad and exclude my on board XDS110 and same thing. 


    There is no software bug but hardware problem in this case.
    Thanks Rebel and thanks Marie.

    Regards,

    Michael