Jean Michault 8b4a5d3b76 | 5 years ago | |
---|---|---|
CCDebugger.c | 5 years ago | |
CCDebugger.h | 5 years ago | |
LICENSE | 5 years ago | |
Makefile | 5 years ago | |
README.md | 5 years ago | |
cc_chipid | 5 years ago | |
cc_chipid.c | 5 years ago | |
cc_erase | 5 years ago | |
cc_erase.c | 5 years ago | |
cc_read | 5 years ago | |
cc_read.c | 5 years ago | |
cc_write | 5 years ago | |
cc_write.c | 5 years ago |
flash CC2531 USB dongle from your Raspberry, without Arduino nor CC Debugger.
A Raspberry Pi 3 with raspbian and wiringPi installed.
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 :
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.
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).
This project is licensed under the GPL v3 license (see COPYING).