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.

CCS/LAUNCHXL-CC2640R2: problem with running simple_peripheral project

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2650, BLE-STACK,

Tool/software: Code Composer Studio

Greetings,

I read the answer to a prior question, re: using TI Compiler V5.2.6 to compile the 'simple_peripheral' project. I just wanted to check-in with my issue  to see if the answer will be the same, and ask a few more questions.

I have tried several of the CC2640R2 LaunchPad projects in the related section of 'Resource Explorer' with varying success, i.e., Project Zero loads, compiles, and is able to be discovered and manipulated. I am able to toggle both LED's. I downloaded, compiled, and ran the 'simple_broadcaster' example. While the broadcaster isn't designed to have a connection, I was still able to see it in my list of advertising BLE devices on my Android notepad. Which brings me to 'simple_peripheral'. This project I also loaded, compiled, and ran. PuTTY indicates that the system is advertising, but when I look on the notepad (running BluePixel BLE Scanner) there is *NO* indication of a BLE device advertising. I.e., it looks like a text message is being sent to PuTTY, but the device doesn't seem to actually be advertising. As mentioned, I can see and/or connect to the other projects, including connecting to my CC2650 SensorTag, so I don't think there is anything else wrong in my development chain. I am willing to add the 'other' compiler, however, before I do, is there some code inside of the 'simple_peripheral' project that can be modified ? My next step is to add/develop some i2c, RTOS, ADC code and my preference is to work across one - preferably the latest set - of tools, i.e., SCS, other modules, ....

Using CCS V7, Compiler Version TI V18.1.1.LTS, but also has V16.9.7.LTS, V16.9.6.LTS, and GNU V6.3.1

Regards,

Jim

  • Hi Jim,

    Can you send a build log? Which Simple Peripheral project are you using? The SimpleLink CC2640R2 SDK v1.50.00.58 includes 4 simple peripheral projects:

    1. If you are running "simple_peripheral" you should be able to see your device advertising without issue. If that is not the case, please check for exceptions in ROV: dev.ti.com/.../

    2. If you are running a "simple_peripheral_oad_*", make sure you are following the instructions for the Out of the Box Demo in the OAD chapter of the TI BLE-Stack User's Guide: dev.ti.com/.../

    3. If you are running the "simple_peripheral_secure_fw" project, please refer to the Out of Box Demo section of the readme: dev.ti.com/.../

    Don't try with TI ARM Compiler v5.2.6. That advice is specifically for the BLE-Stack v2.2.1. Always use the version of the dependencies that is stated in the release notes.

    There is lots of code inside Simple Peripheral that can be modified. I would recommend you go through the labs in SimpleLink Academy to get familiar with the CC2640R2 SDK before getting too far: dev.ti.com/.../
  • For your reference, I just test simple_peripheral in simplelink_cc2640r2_sdk_1_50_00_58 with CCS7.4 and TI V16.9.1.LTS. I can scan and connect to simple_peripheral running on my LAUNCHXL-CC2640R2 without problem.
  • Hello, RachelP,

    The project is the base 'simple_peripheral'. As mentioned, when I look at the PuTTY terminal output a *text message* claims that the LaunchPad is advertising, however, my BLE scanner does not indicate any nearby BLE devices. I have already worked down through about 90 % the SimpleLink Academy. It is something unique to (the code of) this particular project, because as mentioned in my original post, every other project that I've built clearly shows up on my scanner - including other 'simple' projects.

    I will try to get the build log together. What is the best way to capture and submit ?

    Thanks, for the info. on the using the v5.2.6 compiler.

    Jim

  • The recommended CCS and Compiler version in release_notes_simplelink_cc2640r2_sdk_1_50_00_58 are as the followings:
    TI Code Composer Studio: CCS-7.03.00.00019
    TI Code Generation Tools for ARM: 16.09.03.LTS

    For build log, you can copy the content in CCS console and past it to a text file to attach it.
  • Hello, YiKai,
    Seems our toolset is the same, except I was using the V18 compiler. I will try the V16.9.1.LTS compiler.
    On another note, were you using the version of the project from Resource Explorer menu, or, did you use the version directly distributed with the SDK ?
    Regards,
    Jim
  • I use the version directly distributed with the SDK.
  • Good evening YiKai,

    I was originally trying to run the simple_peripheral app and stack that I downloaded from Resource Explorer (RE). To try out the version located in the SDK, I deleted the two projects from the Project Explorer file list. When I tried to Import the project file from SDK I got the error that "A project named simple_peripheral already exists in the Workspace...." even though had deleted the two RE files. HOWEVER, when I went to  the 'New' dropdown below 'File, indeed, a folder named 'simple_peripheral' still exist, along with a separate folder named 'src' that I would also like to get rid of. All to say, I couldn't try what you suggested. There is a PDF file attached, but for some reason I can't see the content on the screen; let me know if I need to resend.

    Please advise.

    Thanks,

    Jim

    FileSystemProblem_BAK.pdf

  • You can try to go to your TI workspace folder and delete whole simple_periphral folder.
  • Hello, YiKai,

    Just to give you an update, and a Summary:

    When I went into my project Workspace I saw *no* remnants of my prior simple_peripheral efforts (even though as you saw, the two images of the file system contents did not align). Nothing to delete there.

    Then I went to the folder where the original source for the simple_peripheral project resided. I made a backup copy of the folder to another location then deleted the folder. Then, through Resource Explorer I tried to download/open a copy of simple_peripheral. For some reason I thought Resource Explorer was grabbing code from a main TI repository - appears that it actually checks my local machine for (some) resources. As I had deleted/moved the original simple_peripheral folder, of course it could not find any content. Next I moved the backed up copy of the simple_peripheral folder back to its original location, then deleted the '.project' file. At this point all remnants of left-over evidence of prior simple_peripheral builds was eliminated. I then loaded simple_peripheral from Resource Explorer from *directly* inside CCS (as opposed to going to the Cloud first, downloading a zipped copy, then opening CCS).

    I think my initial primary issue was the way I was importing the project, i.e., going to the simple_peripheral directory and trying to import *files* as opposed to importing the entire project.

     Bottom line, *Success*

    My toolset: CCS V7.4.0 and ARM V16.9.6.LTS

    Thanks, for all your help.

    Jim