Tools and Techniques for Assessing TI CCxxxx ICs

CC Debugger Emulation using Arduino

It is possible to emulate a TI debugger for the CC chips, running the CC.Debugger protocol, via bit-banging on an Arduino. Using the GPIO pins, and some code, most available arduinos are able to effectively act as debuggers for TI CC254x ICs.

The relevant code can be found on GitHub.

Here is the BOM for this project:

  • 1x Arduino - Use a Leonardo if possible
  • 1x Breadboard
  • 3x 100k resistors
  • 3x 200k resistors
  • cables for connecting things up

Operation is fairly straightforward:

  1. Download the software using git clone and cd into the directory.
  2. Open the Arduino code in the Arduino IDE, choose your device, then compile and upload the firmware to the Arduino.
  3. Utilising the fritzing schematic on the github, some resistors, a breadboard, and some cables, wire up the Arduino debugger to the target. NB - note down your serial interface. It could be /dev/ttyS0 or /dev/ttyACM0 or similar. You will need this information.
  4. Going to the Python directory, use the -p /dev/ttyS0 to check that things are working.
  5. To read flash off the device use the command: ./ -p /dev/ttyS0 --out=output.hex
  6. To write flash use the following command: ./ -p /dev/ttyS0 --out=output.hex
  7. To let the device resume normal operations, use this command: ./ -p /dev/ttyS0