Skip to content
flash CC2531 USB dongle from your Raspberry, without Arduino nor CC Debugger.
Branch: master
Clone or download
jmichault fixed issue #2
fixed issue #2 «error on page 0: byte 0x00 is 0x00 instead of expected 0x02» due to incorrect write length : we must write entire words to flash.
Latest commit 65b9448 Apr 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CCDebugger.c Add files via upload Mar 19, 2019
CCDebugger.h Add files via upload Mar 19, 2019
LICENSE Initial commit Mar 19, 2019
Makefile Add files via upload Mar 19, 2019
README.md Update README.md Mar 24, 2019
cc_chipid . Mar 19, 2019
cc_chipid.c Add files via upload Mar 19, 2019
cc_erase . Mar 19, 2019
cc_erase.c Add files via upload Mar 19, 2019
cc_read . Mar 19, 2019
cc_read.c Add files via upload Mar 19, 2019
cc_write fixed issue #2 Apr 25, 2019
cc_write.c fixed issue #2 Apr 25, 2019

README.md

flash_cc2531

flash CC2531 USB dongle from your Raspberry, without Arduino nor CC Debugger.

prerequisites

A Raspberry Pi 3 with raspbian and wiringPi installed.

Getting Started

Download flash_cc2531 on your raspberry:

git clone https://github.com/jmichault/flash_cc2531.git

Connect the following pins of the debug port to the GPIO port :

  1. pin 1 (GND) --> pin 39 (GND)
  2. pin 7 (reset) --> pin 35 (GPIO24, BCM19)
  3. pin 3 (DC) --> pin 36 (GPIO27, BCM16)
  4. pin 4 (DD) --> pin 38 (GPIO28, BCM20)

and insert the usb dongle in a port.

A downloader cable CC and 4 Dupont line Female to Female are perfect for this purpose :

test by running :

cd flash_cc2531
./cc_chipid

it should return :

  ID = b524.

If you see 0000 or ffff, something is wrong and you should probably check your wiring.

Usage

To save the content of the flash to save.hex file :

./cc_read save.hex

(takes around 1 minute).

To erase the flash :

./cc_erase

To flash file to cc2531 :

./cc_write CC2531ZNP-Pro.hex

(takes around 3 minutes).

License

This project is licensed under the GPL v3 license (see COPYING).

You can’t perform that action at this time.