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.

Editing firmware on CC2540 Keyfob

Other Parts Discussed in Thread: CC2540

Hello, I have the CC2540 Keyfob Development Kit and I have established connections between the bluetooth dongle and the Keyfob and have been able to do simple read writes. Then I connected the CC Debugger and download the SmartRF Flash Programmer and the IAR Workbench. All I want to do is change a few values in the firmware so that it broadcasts indefinitely and so that I can change the name it advertises with. The problem is I don't know how to edit/compile these files so I can upload it to the device with the SmartRF flash programmer. Is there any documents or tutorials or are there steps to do this? Thank you! Let me know if I can answer any other questions

  • You can refer to TI_BLE_Software_Developer's_Guide.pdf and TI_BLE_Sample_Applications_Guide.pdf in C:\Texas Instruments\BLE-CC254x-1.4.0\Documents.

  • Thanks! I have already read through these multiple times but I have yet to find any good info about editing the actual files. I get how I can upload new files but what I don't understand is how to edit the files. Does that make sense?

  • You need IAR Embedded Workbench to compile the source code and generate the HEX file, that you can use with SmartRF Flash Programmer. It is licensed software, but you can download 30 days trial version to start with.

    BTW, which project you are using as a reference?

  • Hi,

    You can open the Keyfob demo is IAR( The project file is having the extension .eww). Once you have opened the project, please edit the keyfobdemo.c(from project explorer) to edit the parameters you want. The you can build them and flash it through CC debugger connected to the keyfob.

    As Yakai mentioned check Chapter 4 of TI_BLE_Software_Developer's_Guide.pdf

    Regards,

    Arun

  • One more question! So when I scan for bluetooth devices on my iOS Device it my KeyFob does not show up. However when I open up the TI Multitool app on the same iOS Device it does...This is strange behavior. Any idea why? I don't even need to be able to connect to the device, I just want to be able to see it in the list of bluetooth devices.

  • Hi,

    By any change is your MultiTool app connecting to the keyfob? If yes, the keyfob would have stopped advertisement. 

    Please check with a packet sniffer if the keyfob i still advertising,

    Regards,

    Arun

  • So I just checked and it looks like it definitely is advertising. Neither of my iOS devices pick it up, nor my BLE enabled computer. But for some reason the app picks it up fine. I made sure the app was disconnected from the key fob and it still didn't show up anywhere. Does the KeyFobDemo software stop this from happening maybe?

  • Hmmm, That should not be the case. You can probably try reducing the advertising interval and increasing the advertising timeout and check. 

    Regards,

    Arun