Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing CC2531 #22

Open
Corbomit opened this issue Jan 16, 2018 · 9 comments

Comments

Projects
None yet
8 participants
@Corbomit
Copy link

commented Jan 16, 2018

Too bad, it seems not to work with a CC2531, neither on Mac, Raspian nor Debian.

The Dongle is found:
[ 3.273108] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[ 3.425810] usb 1-1.2: New USB device found, idVendor=0451, idProduct=16ae
[ 3.436546] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.451040] usb 1-1.2: Product: CC2531 USB Dongle
[ 3.459365] usb 1-1.2: Manufacturer: Texas Instruments

$ python2.7 cc_info.py -p /dev/ttyACM0
ERROR: The chip is not responding. Check your connection and/or wiring!
$

The Sketch was compiled with Arduino IDE 1.0.5.

TX+RX just flashes shortly on the Leonardo (the internal LED does not) and then the Error Message appears in the Terminal. Nothing more.

How can I help ?

@Ingramz

This comment has been minimized.

Copy link

commented Jan 21, 2018

I bought one of the sticks as well and it did not work for me either. What finally let me flash it was https://github.com/RedBearLab/CCLoader on windows with prebuilt exe, arduino leonardo and a level shifter (not voltage divider) to safely interface with the stick.

I am not trying to discourage using CCLib, just that this might help get the ball rolling.

@janinge

This comment has been minimized.

Copy link

commented Apr 25, 2018

Works fine here on macOS 10.13.4, with a Arduino Due (so no voltage divider, and the native USB port with SerialUSB).

./cc_info.py -p /dev/cu.usbmodem14921
INFO: Found a CC2531 chip on /dev/cu.usbmodem14921

Chip information:
Chip ID : 0xb524
Flash size : 256 Kb
Page size : 2 Kb
SRAM size : 8 Kb
USB : Yes

Device information:
IEEE Address : 00124b000e89
PC : 0000

Debug status:
[ ] CHIP_ERASE_BUSY
[ ] PCON_IDLE
[X] CPU_HALTED
[ ] PM_ACTIVE
[ ] HALT_STATUS
[ ] DEBUG_LOCKED
[X] OSCILLATOR_STABLE
[ ] STACK_OVERFLOW

Debug config:
[ ] SOFT_POWER_MODE
[ ] TIMERS_OFF
[X] DMA_PAUSE
[X] TIMER_SUSPEND

@balonchiks

This comment has been minimized.

Copy link

commented May 15, 2018

the chip is being detected properly (same as in the reply above), but when flashing it gives out the following error on MacOS 10.13.4 for me:

ERROR: Flash verification error on offset 0x0000

INFO: Found a CC2531 chip on /dev/cu.wchusbserial14110

Chip information:
      Chip ID : 0xb524
   Flash size : 256 Kb
    Page size : 2 Kb
    SRAM size : 8 Kb
          USB : Yes
Sections in CC2531ZNP-Pro-Secure_LinkKeyJoin_mod.hex:

 Addr.    Size
-------- -------------
 0x0000   8176 B 
 0x1ff6   10 B 
 0x3fff0   1 B 
 0x2000   239616 B 

This is going to OVERWRITE the chip. Are you sure? <y/N>:  y

Flashing:
 - Flashing 4 memory blocks...
 -> 0x0000 : 8176 bytes 
    Progress 0%...  ERROR: Flash verification error on offset 0x0000

Any idea what can it be?

@iwwwwwwi

This comment has been minimized.

Copy link

commented Aug 18, 2018

I understand this post is few months old but I've just hit same issue as @balonchiks. Solved it by adding
--erase at the end of cc_write.py command (I believe -e would also work as it clearly says it in the official instuction. Flashed CC2531 with Arduino Uno with no resistors.

@Donderda

This comment has been minimized.

Copy link

commented Oct 2, 2018

Hi together! How did you wire your UNO? If I try to run the cc_info.py, I get only "No chip found. Check your connection and/or wiring". My CC2531 gets green for a short time. But nothing else happen :(

@Donderda

This comment has been minimized.

Copy link

commented Oct 2, 2018

I bought one of the sticks as well and it did not work for me either. What finally let me flash it was https://github.com/RedBearLab/CCLoader on windows with prebuilt exe, arduino leonardo and a level shifter (not voltage divider) to safely interface with the stick.

I am not trying to discourage using CCLib, just that this might help get the ball rolling.

Where did you get the bin from?

@Ingramz

This comment has been minimized.

Copy link

commented Oct 3, 2018

Where did you get the bin from?

It's right there, in a folder named Windows

@rkantos

This comment has been minimized.

Copy link

commented Dec 20, 2018

Works fine here on macOS 10.13.4, with a Arduino Due (so no voltage divider, and the native USB port with SerialUSB).

How and which pins did you use with your Arduino Due and the CC2531?

@ReDetection

This comment has been minimized.

Copy link

commented Jan 13, 2019

@balonchiks I was able to workaround this by lowering UART speed to 9600baud. Dunno why this worked ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.