Port of flash_cc2531 to FreeBSD. This is likely more just include a wiringPi compatible library for FreeBSD. Any new files are BSD licensed and NOT GPLv3 license.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
jmichault d8ca5ff03a
Add files via upload
5 years ago
CCDebugger.c Add files via upload 5 years ago
CCDebugger.h Add files via upload 5 years ago
LICENSE Initial commit 5 years ago
Makefile Add files via upload 5 years ago
README.md Update README.md 5 years ago
cc_chipid Add files via upload 5 years ago
cc_chipid.c Add files via upload 5 years ago
cc_erase Add files via upload 5 years ago
cc_erase.c Add files via upload 5 years ago
cc_read Add files via upload 5 years ago
cc_read.c Add files via upload 5 years ago
cc_write Add files via upload 5 years ago
cc_write.c Add files via upload 5 years ago

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 and unpack the archive on your raspberry. Connect the following pins of the debug port to the GPIO port : pin 1 (GND) --> pin 39 (GND) pin 7 (reset) --> pin 35 (GPIO24) pin 3 (DC) --> pin 35 (GPIO27) pin 4 (DD) --> pin 35 (GPIO28)

and insert the usb dongle in a port.

test by running :

./cc_chipid

it should returns :

  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 2 minutes).

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).