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

flash cc2531 with raspberry PI4 #13

Closed
oscarlinux opened this issue Feb 4, 2020 · 13 comments
Closed

flash cc2531 with raspberry PI4 #13

oscarlinux opened this issue Feb 4, 2020 · 13 comments
Labels
wontfix This will not be worked on

Comments

@oscarlinux
Copy link

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

@dgericson
Copy link

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.

@oscarlinux
Copy link
Author

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.

I checked the wiring a couple of times but didn't find any issue. I even checked continuity and all looks good :/

@dgericson
Copy link

I don't know if was just coincidental or not. But I installed network-manager and purged modemmanager, and the flash procedure worked perfectly.

@pepijnmm
Copy link

@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

@michaelturnbull
Copy link

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/

@gtb08177
Copy link

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.

@tngebauer
Copy link

Hey guys,
I had the same problem with my Raspberry Pi 4.
For me the follwing answer to another issue solved it:
#9 (comment)

@gtb08177
Copy link

gtb08177 commented Jun 28, 2020

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.

@jmichault
Copy link
Owner

Have you tried the -m option with different values ?
./cc_chipid -m 200 -r 8 -c 0 -d 2

@paw-eloquent-safe
Copy link

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!

@marcusds
Copy link

marcusds commented Dec 4, 2020

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)

@ravngr
Copy link

ravngr commented Dec 18, 2020

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.

@stale
Copy link

stale bot commented May 1, 2021

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.

@stale stale bot added the wontfix This will not be worked on label May 1, 2021
@stale stale bot closed this as completed May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

10 participants