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
Comments
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 :/ |
I don't know if was just coincidental or not. But I installed network-manager and purged modemmanager, and the flash procedure worked perfectly. |
@oscarlinux Did it still not work? |
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/ |
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. |
Hey guys, |
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 executing cchipid with alternate pins executing cc_erase attempting the flash anyway (hangs here - 10 minutes given at most) execute usb-devices for dongle info Just can't seem to get the starts to align......... as ever - any help appreciated. |
Have you tried the -m option with different values ? |
./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! |
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) |
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. |
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. |
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
The text was updated successfully, but these errors were encountered: