Testing CC2531
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 ?
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.
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
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?
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.
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 :(
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?
Where did you get the bin from?
It's right there, in a folder named Windows
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?
@balonchiks I was able to workaround this by lowering UART speed to 9600baud. Dunno why this worked ¯_(ツ)_/¯