flash CC2531 USB dongle from your Raspberry, without Arduino nor CC Debugger.
## prerequisites
A Raspberry Pi 3 with raspbian and [wiringPi](http://wiringpi.com/) installed.
You need a Raspberry with [wiringPi](http://wiringpi.com/) installed.
I have designed flash_cc2531 on a Raspberry Pi 3 with raspbian, but successful flashes have been reported on pi 1 and pi 2 : see sections [use other pins](#use-other-pins) and [what to try if it doesn't work](#what-to-try-if-it-doesnt-work).
## Getting Started
@@ -48,11 +49,11 @@ To erase the flash :
To flash file to cc2531 :
```bash
./cc_write CC2531ZNP-Pro.hex
./cc_write CC2531ZNP-Prod.hex
```
(takes around 3 minutes).
## Using other pins
## Use other pins
all commands accept following arguments :
```bash
-c pin : change pin_DC (default 27)
@@ -74,7 +75,7 @@ and now you can read chip id, save flash content, erase flash, and write flash w
./cc_chipid -r 8 -c 0 -d 2
./cc_read -r 8 -c 0 -d 2 save.hex
./cc_erase -r 8 -c 0 -d 2
./cc_write -r 8 -c 0 -d 2 CC2531ZNP-Pro.hex
./cc_write -r 8 -c 0 -d 2 CC2531ZNP-Prod.hex
```
You can also change default values in CCDebugger.h and recompile executables with make.
@@ -89,9 +90,9 @@ exit
```
3. use the -m option to increase time delays used. Example :
```bash
./cc_write -m 300 CC2531ZNP-Pro.hex
./cc_write -m 300 CC2531ZNP-Prod.hex
```
4. executables are compiled on my raspbian distribition, you can try to recompile for your distribution with make.
4. executables are compiled on my raspbian distribution, you can try to recompile for your distribution with make.