Skip to content

programming

bjoerke edited this page Jun 29, 2014 · 1 revision

Programming the TI CC2540

The HM-10 uses the TI CC2540 SoC so that you have to develop your firmware for this SoC. The sofware libraries are provided by TI, IAR Embedded Workbench is recommended as IDE.

1. Get the BLE-Stack

Register at TI and download/install the stack: http://www.ti.com/tool/ble-stack You should use "C:/Texas Instruments" as installation location. You will also obtain all references and Manuals from this site.

2. Get IAR Embedded Workbench

Register at IAR. Then buy Embedded Workbench or try the 30 days trial: http://supp.iar.com/Download/SW/?item=EW8051-EVAL

3. Code!

Open "C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\HM10Firmware\CC2540\SimpleBLECentral.eww" to open the project. Right click on "SimpleBLECentral" and select "Make". A .hex file be generated in "C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\HM10Firmware\CC2540\CC2540EM\Exe". Convert it to a .bin file, for example with hex2bin. This is the final firmware image you can flash onto the HM-10. See flash firmware for more Information.