Programming / Debugging The Cc2540 Or Cc2541; Hardware Setup For Keyfob - Texas Instruments CC2540DK-MINI User Manual

Table of Contents

Advertisement

5. Programming / Debugging the CC2540 or CC2541

The CC Debugger included with the CC254XDK-MINI kit allows for debugging using IAR Embedded
Workbench for 8051, as well as for reading and writing hex files to the CC2540/41 flash memory using the
SmartRF Flash Programmer software. SmartRF Flash Programmer also has the capability to change the
IEEE address of the CC2540/41 device. The BLE software development kit includes hex files for both the
USB Dongle as well as the keyfob. This section details the hardware setup when using the CC Debugger, as
well as information on using SmartRF Flash Programmer. Information on using IAR Embedded Workbench
for debugging can be found in the Texas Instruments Bluetooth® Low Energy Software Developer's Guide
[3].

5.1 Hardware Setup for Keyfob

If the keyfob is viewed with the LED on top and the coin cell battery holder at the bottom, then the set of
pins closer to the top are the ones that should be used for connecting to the debugger. Pin 1 is the pin on
the lower right side as shown in Figure 40.
Connect the CC Debugger to the keyfob as shown below. Be sure that the ribbon cable is oriented
properly, with the red stripe connected to pin 1 as shown in Figure 41.
Insert a coin cell battery in the keyfob to supply power to the target. NB! Note the orientation of the
battery (+ up, - down). Next, connect the CC Debugger to the PC's USB port and then to the keyfob. Note
that the CC debugger will by default not supply any power, but it will sense the voltage on the target (in
this case the keyfob) for proper level shifting of the debug signals. The status indicator LED on the CC
Debugger should turn on. If the LED is red, that means no CC2540/41 device was detected. If it is green,
then a CC2540/41 device has been detected. If the keyfob is connected and the LED is red, try pressing
the reset button on the CC Debugger. This resets the debugger and re-checks for a CC2540/41 device. If
the LED still does not turn green, re-check that all cables are securely connected. Also verify that the CC
Debugger has the latest firmware (see section 5.3).
Figure 40 CC2540 Keyfob, Debug Connector
Figure 41 CC2540 Keyfob Connected to CC Debugger
Page 29 of 38
SWRU270C

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CC2540DK-MINI and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cc2541Cc2540Cc2541dk-mini

Table of Contents