Running Arduino sketches on the Pi

mrburnette
Sun Feb 14, 2016 6:09 am
Interesting

Postby kolban » Wed Feb 03, 2016 2:09 am
A new project can be found on Github here:

https://github.com/me-no-dev/RasPiArduino

Which provides the ability to compile Arduino sketches using the Arduino IDE on either Windows or Linux and run the resulting binaries on the Raspberry Pi.


RogerClark
Sun Feb 14, 2016 8:57 am
Thanks Ray

I have an original RPi, but never got around to buying anything newer as I never used the Pi its self…

So I may be able to blow the dust off it and give that repo a try, assuming my old board is supported


darth_llamah
Sun Feb 14, 2016 10:21 am
RogerClark wrote:Thanks Ray

I have an original RPi, but never got around to buying anything newer as I never used the Pi its self…

So I may be able to blow the dust off it and give that repo a try, assuming my old board is supported


stevech
Sun Feb 14, 2016 7:16 pm
RPi … best to use Python – far more productive with your time than groveling in C on Linux.

Rick Kimball
Tue Feb 16, 2016 8:30 pm
mrburnette wrote:Interesting

RogerClark
Tue Feb 16, 2016 8:49 pm
Rick

Me too…

I saw a video where someone did that with a beagleboneblack, but I’ve not heard of anyone doing the same on a RPI.

I wonder how you would upload the code?


Rick Kimball
Tue Feb 16, 2016 8:53 pm
simplest way is to write a bin with arm code, call it kernel7.img and write it to the sdcard. reboot and you are running. check out the sticky on rpi forums in the bare metal section

RogerClark
Tue Feb 16, 2016 8:58 pm
Thanks Rick

That method did cross my mind.

But it would be nicer not to have to keep unplugging and moving the card

I will checkout that forum when i get some free time


Rick Kimball
Tue Feb 16, 2016 9:11 pm
I saw a JTAG example which required you to have an FT2232 device.
https://github.com/dwelch67/raspberrypi … er/armjtag

More interesting to me the RPI Serial Remote Stub someone wrote which only required a UART dongle. You compile in some code that is part of the kernel7.img. Then you can load and debug code using a gdb client much like you would with say the BMP debugger.
https://github.com/jamieiles/rpi-gdb


RogerClark
Tue Feb 16, 2016 9:14 pm
Thanks

martinayotte
Tue Feb 16, 2016 9:19 pm
Doing little search reveal that someone has done some RapsberryPi Bare Metal :

https://github.com/dwelch67/raspberrypi


Rick Kimball
Tue Feb 16, 2016 9:21 pm
Yeah he has some interesting stuff. I just noticed this jtag solution. It uses a hacked up version of the paraport code in openocd along with an msp430 acting as a serial to jtag interface:

https://github.com/dwelch67/raspberrypi … plaunchpad

You could hack up a version that works with a maple mini and have an interesting interface.


Leave a Reply

Your email address will not be published. Required fields are marked *