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.

No luck running code samples on CC2640

Other Parts Discussed in Thread: CC2640, CCSTUDIO, CC2650, BLE-STACK

Folks,

I’m bringing up my own board with a CC2640 (inside SaBLE-x module with built-in antenna). Here’s what I was able to accomplish so far:

  1. Downloaded and installed Flash Programmer 2
  2. Downloaded and installed CCStudio 6.1.3 .  I don't want to use the cloudy CCStudio.
  3. Downloaded and installed BLE Stack.
  4. Procured Debugger DevPack
  5. Put together my board. At the moment, nothing is connected to the SaBLE-x module, except power and JTAG.
  6. Established connection between Flash Programmer 2 and CC2640 on my board. I can read MAC address of the CC2640, which means that the JTAG link is working.
  7. Established connection between CCStudio and CC2640. I can download example programs, and CCStudio says that download is successful.

But now I seem to be stuck.  I want to download an example code into the CC2640 and make it appear on the BLE scanner app (nRF Master Cobtrol Panel).  But I can't seem to find an example that works (as far as I understand, code samples for CC2650 should run on CC2640 too).  What could/should I try next?

Best,
- Nick

  • Hi Nick,

    Did you follow the guide from LSR for using the correct board file with the SaBLE-x module? The default sample apps in the TI BLE-Stack SDK use the 7ID configuration but SaBLE-x uses the 5XD. In most cases you can just change the board file - please refer to the SW Developer's Guide (SWRU393) for more details.

    Best wishes
  • Hi JXS,

    The only place in the LSR docs** where I could find reference to 5XD is the datasheet for the SaBLE-x.  So far, I haven't followed it, glossed that part over.

    Cheers,
    - Nick

    ** datasheet, application guide, dev board user guide.  If you are aware of some additional LSR guide I could read, please point me to it.

    *** Now that I'm thinking about it, LSR/Laird did mention something about changing the board file.

  • How do I actually change the board file in CCStudio?  What are the steps?

    LSR provides a screenshot of IAR EmbeddedWorkbench in their datasheet (p.15).  Obviously, that helps only so much when it comes to CCStudio.

    Then I've found these steps, but when I look into the include files for Project Zero, but I can't find a line that would resemble
    ${TI_RTOS_DRIVERS_BASE}/ti/boards/SRF06EB/CC2650EM_5XD .

    I've started with Project Zero App, App CC2650 EM-7ID .  Did I start at a wrong place?

    Any suggestion, insight or reference is really appreciated!

  • Assuming you are using BLE-Stack v2.2.0, you can change the board file by following the steps in "6.2 Board File" in the SW Dev Guide (SWRU393).

    I would start with the simple_peripheral example firstly.

    Best wishes