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.

Compiler/LAUNCHXL-CC2640R2: Simple Peripheral Example not Working

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

Tool/software: TI C/C++ Compiler

Hi.

I freshly downloaded the SDK for the CC2640 from here:

Installed it on my machine, and attempted to run a few examples.

When I run ble5_simple_broadcaster, it works as intended.  I can see output on my Putty terminal (BLE Broadcaster 0xB0912269FCCA Advertising), and I can see on my BLE phone app that it is indeed broadcasting.

However, I'm more interested in customizing the ble5_simple_peripheral_cc2640r2lp example.  When I try to run this, as per the instructions here:

I neither get any output on the UART, nor does the device advertise itself like the instructions say that it should.

Am I skipping a step, or does the example just not work.  Keep in mind I was having the same trouble before, so I completely downloaded the code from the TI website.  The simplelink SDK hasn't been touched.

  • Do you modify anything on ble5_simple_peripheral_cc2640r2lp example? If you download prebuilt hex cc2640r2lp_simple_peripheral.hex under C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\examples\rtos\CC2640R2_LAUNCHXL\ble5stack\hexfiles to your LAUNCHXL-CC2640R2F, does it work?

  • No, I made it a point to download the Simplelink SDK fresh from the website and try to build and load the simple peripheral OAD from scratch without touching anything.

    If I load the cc2640r2lp_simple_peripheral.hex from the simplelink directory, it does indeed work.

    If I try to load the .hex from <CCS workspace>\ble5_simple_peripheral_cc2640r2lp_app_oad_offchip\FlashROM_OAD_Offchip\ble5_simple_peripheral_cc2640r2lp_app_oad_offchip.hex, it doesn't work. Nor does it work if I try to debug the code in CCS itself.
  • I just tried again:

    I deleted C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\

    I deleted EVERYTHING in C:\Users\<me>\workspace\. Even metadata, etc.

    I download the installer, and installed everything in C:\ti

    I open CCS, and import C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\examples\rtos\CC2640R2_LAUNCHXL\ble5stack\simple_peripheral_oad_offchip

    I hit "debug", which will build everything and load it onto the board.

    But nothing happens.  There's no output on Putty, and it's not broadcasting anything.  Again, loading the prebuilt hex file works fine.  I'm not even sure how to /start/ debugging this issue.

    Is there an older version of the Simplelink SDK I can try?

  • The Simple Peripheral OAD project depends on the Simple Peripheral project and the BIM OAD offchip project. Although it automatically imports the BIM project, it doesn't import the Simple Peripheral project automatically. I didn't notice this in my crowded work space.

    Once you import the Simple Peripheral project, and rebuild then reflash the Simple Peripheral OAD project, everything works.