me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
333 stars 75 forks source link

How we can run arduino generated .bin file on raspberry pi 3? #49

Open jawadg opened 8 years ago

jawadg commented 8 years ago

we use raspi arduino framework https://github.com/me-no-dev/RasPiArduino when we upload or run .bin file on raspberry pi 3 error occur UNKNOWN-REVISION 0x00000000. the link https://github.com/me-no-dev/RasPiArduino library successfully run on raspberry pi 2.

me-no-dev commented 8 years ago

sorry, I do not own pi3 yet and have not tested the framework with it.

prothan commented 8 years ago

Get error UNKNOWN_REVISION: 0x00A02082 when I try to run binary on pi3. I also have pi 2, worked good on that. Really would like to try to get this working on pi3. Any thoughts on what the issue might be?

Synergyst commented 7 years ago

I also recieve the 'UNKNOWN_REVISION: 0x00A22082' error on my Pi3.. Although I'm not sure if this is an active project anymore so any update on this issue would be appreciated.

MovLab2 commented 7 years ago

I too get this error. It is for using pi3. /proc/cpuinfo= Hardware : BCM2709 Revision : a22082 works with Revision : a21041 = Pi2
This is such a good way. Question for me-no-dev, Do You intend to get this working for us? Is there a workaround? Hope there is something.. Thanks if you can...

me-no-dev commented 7 years ago

yes, I surely intend to get it to run on all PIs out there, but I am really currently preoccupied with work on the ESP32-Arduino core :( have not even had time to open the browser and purchase PI3. As far as I know there are no changes in registers, but I am unaware yet if they follow the PI1 addressing or the PI2. If someone can dig some info maybe I can help get this going on one of your PIs? :)

me-no-dev commented 7 years ago

Here is some info on what you can do:

  1. Error comes from here because that revision is not known.
  2. Revisions supported are defined here
  3. Library used to detect the model is here. Register location is also there. Source repository for it is here

So maybe you can replace with updated detection lib and add the mapping for PI3. The rest should work from then on.

me-no-dev commented 7 years ago

ok, nevermind :) I pushed pull the latest commit and give it a go. It might work :)

MovLab2 commented 7 years ago

It's Running Perfect now.. Thanks so much. My test compiles and runs in the pi3 now .. Great Job.. Now I can continue with my project :)))

Synergyst commented 7 years ago

I can confirm the test sketch I tried running is now working after updating the RasPiArduino utilities on the Raspberry Pi 3.

Thanks a ton! :D

mega-hz commented 6 years ago

Hello, great projekt! How can i get it running on a bananaPi ? I get an error on it: root@HOME-SYS:/home# sudo ./test_pi.bin UNKNOWN_REVISION: 0x00000000 Would be great if you could help me! Wolfram.