Skip to content

flash firmware

bjoerke edited this page Jun 30, 2014 · 2 revisions

Flash Firmware

To flash firmware onto the CC2540 you have to emulate a CCDebugger device. This is not too difficult because the protocoll is well documented and already implemented for Arduino. But it requires some soldering.

Access Debug Pins

The CC2540 provides debug access through three pins. They are connected to the HM-10's pins as follows:

  • DEBUG_CLOCK (DC): Pin 7
  • DEBUG_DATA (DD): Pin 8
  • RESET_N: Pin 11

The HM-10's pin numbers can be found in it's datasheet:

HM10 Pins

Now you have to solder three wires to these three pins.

Flash Firmware (Arduino)

Connect the three wires to your Arduino as follows:

DD -> pin 6

DC -> pin 5

RESET_N -> pin 4

Now upload the CCLoader to your Arduino. Now you can send your binary-file to the Arduino which flashes it onto to the CC2540. Open a command line and type:

cd <CCLoader-dir>

cd Windows

CCLoader.exe <COM Port> <Firmware.bin> 0

Now the firmware gets uploaded which may take a few minutes.