Comments (13)
I had an issue where cc_chipid was returning 0000 on my Raspberry Pi 4B. If anybody ends up here like me looking for an answer, in my case the problem was that the raspbian preinstalled version of wiringpi needs to be updated for the 4B. Once I updated I had no more issues.
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
from flash_cc2531.
Have you tried the -m option with different values ?
./cc_chipid -m 200 -r 8 -c 0 -d 2
from flash_cc2531.
I had an issue where cc_chipid was returning 0000 on my Raspberry Pi 4B. If anybody ends up here like me looking for an answer, in my case the problem was that the raspbian preinstalled version of wiringpi needs to be updated for the 4B. Once I updated I had no more issues.
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
This was my experience too on a pi 4b. Raspbian stable installed 2.50 via apt for me and would alternate chip ID between 0000 and FFFF depending upon CLI options. Installing 2.52 fixed it and I was able to erase and flash successfully.
from flash_cc2531.
Hi, just wondering if this would work on a raspberry PI4. I'm following the steps but cc_chipid returns ffff. Has anyone been able to flash the cc2531 with a PI4? What other steps are required?
Thanks,
Oscar
Did you double check your wiring? That sounds like what your problem might be.
I am attempting to flash a cc2531 on a Pi4 as well. I can see the device, read it, and erase it, but cannot write to it.
from flash_cc2531.
Hi, just wondering if this would work on a raspberry PI4. I'm following the steps but cc_chipid returns ffff. Has anyone been able to flash the cc2531 with a PI4? What other steps are required?
Thanks,
OscarDid you double check your wiring? That sounds like what your problem might be.
I am attempting to flash a cc2531 on a Pi4 as well. I can see the device, read it, and erase it, but cannot write to it.
I checked the wiring a couple of times but didn't find any issue. I even checked continuity and all looks good :/
from flash_cc2531.
I don't know if was just coincidental or not. But I installed network-manager and purged modemmanager, and the flash procedure worked perfectly.
from flash_cc2531.
@oscarlinux Did it still not work?
It worked for me. I connected the cc2531 to a exernal power suply but for the rest I did nothing diffrent then the tutorial on: https://www.zigbee2mqtt.io/information/alternative_flashing_methods.html#with-raspberry-pi-3min
from flash_cc2531.
I am suffering the same behaviour described by @oscarlinux .
Running Raspbian Lite v10 on a Raspberry Pi 4 B 2Gb model. I am only ever getting 0000 for the cc_chipid step - both with normal wiring using depont cables and then using the alternative pins.
I tried going back through previous checkouts and unsuccessful.
NB. I have installed the latest wiring pi as well. Any help appreciated.
from flash_cc2531.
Hey guys,
I had the same problem with my Raspberry Pi 4.
For me the follwing answer to another issue solved it:
#9 (comment)
from flash_cc2531.
Thanks for the heads up @Vaypron sadly did not resolve my issue. I am beginning to think it is my specific C2531 debugger- however i did buy 2 and from 2 different suppliers. In case anyone can help, here is a little bit more context around my setup.
hardware: Rasp Pi 4B 2Gb model
dmesg printout
[ 4250.948247] usb 1-1.1: new full-speed USB device number 23 using xhci_hcd
[ 4251.085134] usb 1-1.1: New USB device found, idVendor=0451, idProduct=16ae, bcdDevice=88.05
[ 4251.085141] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4251.085147] usb 1-1.1: Product: CC2531 USB Dongle
[ 4251.085152] usb 1-1.1: Manufacturer: Texas Instruments
executing cchipid with alternate pins
pi@RyPi:~/zigbee/flash_cc2531 $ ./cc_chipid -r 8 -c 0 -d 2 ID = 0000.
executing cc_erase
./cc_erase -r 8 -c 0 -d 2
ID = 0000.
erase result = 0000.
attempting the flash anyway (hangs here - 10 minutes given at most)
pi@RyPi:~/zigbee/flash_cc2531 $ ./cc_write -r 8 -c 0 -d 2 CC2531ZNP-Prod.hex
ID = 0000.
reading line 15490.
file loaded (15497 lines read).
writing page 1/128.
execute usb-devices for dongle info
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 24 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs= 1
P: Vendor=0451 ProdID=16ae Rev=88.05
S: Manufacturer=Texas Instruments
S: Product=CC2531 USB Dongle
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
Just can't seem to get the starts to align......... as ever - any help appreciated.
from flash_cc2531.
Have you tried the -m option with different values ?
./cc_chipid -m 200 -r 8 -c 0 -d 2
./cc_chipid -m 200
./cc_read -m 200 back-up.hex
./cc_write -m 200 CC2531ZNP-Prod.hex
ID = b524.
reading line 15490.
file loaded (15497 lines read).
writing page 128/128.
verifying page 128/128.
flash OK.
Adding the -m option with a value of 200, worked for me using a RPi 4, thanks!
from flash_cc2531.
I had an issue where cc_chipid was returning 0000 on my Raspberry Pi 4B. If anybody ends up here like me looking for an answer, in my case the problem was that the raspbian preinstalled version of wiringpi needs to be updated for the 4B. Once I updated I had no more issues.
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
For those on pi Zero, I could not get it working until I updated to wiringpi 2.52. I then had to set the time multiplier to at least 75, but went higher just incase. (IE ./cc_chipid -m 80)
from flash_cc2531.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from flash_cc2531.
Related Issues (20)
- Directory not found using ubuntu on RPI 4b? HOT 11
- cc_chipid showing no id at all HOT 1
- Flash of CC2531 hangs HOT 6
- Verifying takes several hours on CC2530 HOT 1
- wiringPi is deprecated HOT 9
- Can't open file CC2531ZNP-Prod.hex. HOT 1
- is it compatible with orangepi pc plus arm7 with WiringOP? HOT 4
- i cant flash CC2530
- Solution for some cc_chipid returning 0000 HOT 1
- cc_write uses hardcoded pin numbers
- cc_read not read all lines HOT 1
- wiringPi deprecated HOT 3
- Flash from OrangePI HOT 1
- Reading line 15280.incorrect hex file (incorrect length HOT 1
- writing page 65/128.verification error HOT 7
- verification error HOT 3
- documentation states on Raspberry 1 and 2 other pins are needed HOT 2
- TI CC2650 support ? HOT 1
- Verification error HOT 2
- Update for 128KB CC2531. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flash_cc2531.