From 9b7d37c9661367209639ba1bead0ca3728e4ca12 Mon Sep 17 00:00:00 2001 From: Serg Date: Wed, 16 Jan 2019 23:45:14 +0700 Subject: [PATCH 1/3] note about resistors; mark more chips as supported --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 183e233..e262a56 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,12 @@ _NOTE:_ If you don't want to use the `--port` parameter with every command you c ~$ export CC_SERIAL=/dev/ttyS0 ``` +## Troubleshooting + +You wired everything up, you double-checked that your pin assignments are correct and you are still not able to flash your device? Then try the following: +* Try using 50k/100k resistors instead of 100k/200k. [#27](https://github.com/wavesoft/CCLib/issues/27) +* Try to check if voltage at expected level, e.g. if you disconnect `CC_DD_O` from the Arduino and connect to a 5V power rail instead, you should read about 3.3V at `DD`. If not – probably you have wrong wiring or bad resistors. + ## Compatibility Table In order to flash a CCxxxx chip there is a need to invoke CPU instructions, which makes the process cpu-dependant. This means that this code cannot be reused off-the-shelf for other CCxxxx chips. The following table lists the chips reported to work (or could work) with this library: @@ -130,7 +136,7 @@ In order to flash a CCxxxx chip there is a need to invoke CPU instructions, whic CC2531 0xb5.. CC254X - :large_orange_diamond: Looking for testers + :white_check_mark: Works with 50k/100k resistors CC2533 @@ -148,7 +154,7 @@ In order to flash a CCxxxx chip there is a need to invoke CPU instructions, whic CC2541 0x41.. CC254X - :large_orange_diamond: Looking for testers + :white_check_mark: Works with 50k/100k resistors CS2510 From c5ecac0da56c627c3ae4bb15b4671f27adf9fb06 Mon Sep 17 00:00:00 2001 From: Serg Date: Fri, 25 Jan 2019 20:36:41 +0700 Subject: [PATCH 2/3] more troubleshooting options --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e262a56..6298ac0 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,9 @@ _NOTE:_ If you don't want to use the `--port` parameter with every command you c You wired everything up, you double-checked that your pin assignments are correct and you are still not able to flash your device? Then try the following: * Try using 50k/100k resistors instead of 100k/200k. [#27](https://github.com/wavesoft/CCLib/issues/27) -* Try to check if voltage at expected level, e.g. if you disconnect `CC_DD_O` from the Arduino and connect to a 5V power rail instead, you should read about 3.3V at `DD`. If not – probably you have wrong wiring or bad resistors. +* Try to check if voltage at expected level, e.g. if you disconnect `CC_DD_O` from the Arduino and connect to a 5V power rail instead, you should read about 3.3V at `DD`. If not – probably you have wrong wiring or bad resistors. +* If `cc_info.py` tool reports `DEBUG_LOCKED` flag, you will have to erase chip during flashing. Put the `--erase` option. [#29](https://github.com/wavesoft/CCLib/issues/29) +* If flashing begins but stops with a message `Progress 0%... ERROR: Could not read from the serial port!` – try to lower down the baudrate to 9600: in the Arduino file around [line 94](https://github.com/wavesoft/CCLib/blob/13ebd0878a8a691d1336b96609eb44d535021964/Arduino/CCLib/Examples/CCLib_proxy/CCLib_proxy.ino#L94), in the Python [ccproxy.py around line 85](https://github.com/wavesoft/CCLib/blob/13ebd0878a8a691d1336b96609eb44d535021964/Python/cclib/ccproxy.py#L85) replace to `self.ser = serial.Serial(port, baudrate=9600, timeout=3.0, write_timeout=3.0)`. ## Compatibility Table From 6ee1ea868d3d5204d8193cb64b8c790c1d4fb019 Mon Sep 17 00:00:00 2001 From: Serg Date: Fri, 25 Jan 2019 20:42:36 +0700 Subject: [PATCH 3/3] this section is misleading. explained in the troubleshooting instead --- README.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/README.md b/README.md index 6298ac0..531f9a9 100644 --- a/README.md +++ b/README.md @@ -65,20 +65,6 @@ Device information: PC : 002f ``` -However, if you see something like this, something is wrong and you should probably check your wiring and/or reset the arduino board or the CC board. - -``` -Chip information: - Chip ID : 0x4113 - Flash size : 16 Kb - SRAM size : 1 Kb - USB : No - -Device information: - IEEE Address : 000000000000 - PC : 0000 -``` - ### 3. Using the software The python utilities provide a straightforward interface for reading/writing to your CCxxxx chip: