Closed elyorkhakimov closed 4 years ago
I might have found the reason why I had messages about "Not available for pin 28" -> this is a default setting. Once I changed to different pins I can now see a clean output. I have yet to connect the pins to the actual board itself.
root@odroid:~/flash_cc2531# ./cc_chipid -c 21 -d 22 - r 24
ID = 0000.
The question about those compile time warnings remain, and plus I have a new question:
gpio readall
command yields "0" value for lots of pins. The default pins in flash_cc2531 binaries use those pins with "0" values. I see that on Odroid-C2 many of pins have "1" value. Is this a problem for flashing the firmware ?Hello, i have corrected code to suppress this warnings. My code has never been tested on 64 bits architecture, and on other hardware than raspberry, you are the first to test it.
"1" value should not be a problem, state of pins is forced at beginning.
You should try the "-m" option with different values. Higher values usually give slowest speed but better stability.
thanks for quick fix! I will test it out and report back shortly
Success! I pulled from master, re-built binaries, and then did the flash.
root@odroid:~/flash_cc2531# ./cc_erase -c 23 -d 22 -r 24
ID = b524.
erase result = 00a2.
root@odroid:~/flash_cc2531# ./cc_write -c 23 -d 22 -r 24 CC2531ZNP-Prod.hex
ID = b524.
reading line 15490.
file loaded (15497 lines read).
writing page 128/128.
verifying page 128/128.
flash OK.
root@odroid:~/flash_cc2531#
Great. :+1:
OS:
Hardware:
running with WiringPi https://wiki.odroid.com/odroid-c2/application_note/gpio/wiringpi#tab__odroid-c2
Added few things to make sure Makefile compiles (the pre-compiled binaries would always say "directory not found"):
Running make yields some warnings.
Can these warnings be ignored?
Also, when running the binaries, getting some errors:
Output of Wiringpi: