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.

Keyfob not working....for some hex images

Other Parts Discussed in Thread: CC2540, BLE-STACK

I just resumed from work from a few months ago with the CC2540 keyfob and iPhone app.  Weird, I can't seem to get the iPhone app (TI-BLE-demo) to recognize the keyfob when I load it with "cc2540_ble1.1_keyfob_SimpleBLEPeripheral.hex" or even the "CC2540MiniDkDemoSlave.hex" found on another posting.  More specifically, the keyfod doesn't look like it is even running...I see no led light up.  Just for these images.  The basic "cc2540_ble1.1_SmartRF_SimpleBLEPeripheral.hex" runs, however (and the iPhone app can discover it...just doesn't like the services/characteristics it finds).

Hmmm, bad flash?  I don't see any flash errors when programming, although I do get an error when verifying (eh, but I get that for the images that work, too).

Any ideas out there before I order a new eval kit from DigiKey?

  • Hi John,

    Download the latest stack from ti.com/ble-stack.

    Find the hex file Accessories/Hexfiles/CC2540MiniDkDemoSlave.hex and program the device using SmartRF Flash Programmer. Be sure to choose Erase, Program and Verify. Perhaps try with only Erase first. This should work with no problems.

    This should then, when advertising, be discoverable by the iPhone app. "TI BLE Multitool" found on App Store.

    Best regards,
    Aslak 

  • So does this mean that the keyfob hex file and the TI Keyfob app does not work?

  • Hi Tony,

    This depends what you mean by keyfob hex file and TI Keyfob app. The hex file I mentioned is the one that at this point is programmed onto the keyfob during production. Earlier the keyfob was delivered with a test image, and you would have had to program this hex file anyway.

    If you by TI Keyfob app mean the one linked to from ti.com/ble-wiki, it is now deprecated, as it was a sort of first example of iOS development. Although it should work. For iOS BLE development, have a look at the application example found at ti.com/sensortag-wiki.

    Best regards,
    Aslak 

  • Thanks Aslak,

    One other question.  Is there going to be a code composer release?  Nothing against IAR but you have to use the full edition and after 30 days it is like $3,000 for a license.   For us little guys that is a show stopper.  

    Regards,

    Tony

  • It's been brought up dozens of times in the forum, but unfortunately, there hasn't been any word on a Code Composer release.  

  • Tony,

    Unfortunatelty, as John said, IAR is a must. You have to use either IAR or flash 254x with external stack that allows programming via scripting tools, like Bluegiga's. 

    Too bad that they are device-specific (like, for F128 device only, etc.) and ignore sweetest low-level capabilities of 2541s. No to mention half-crippled home-brewn scripting tools.

    If application permits and external MCU, you may want to use Host .hex image and control it via HCI from host device. Horrible for size/cost/comlexity, though, unless the host device is planned to be there from the start.

    BR, 

    Oleg.