crofter
Posts: 55
Joined: Thu Feb 22, 2018 11:28 pm

program for pi A+

Sat Jun 23, 2018 10:53 am

hi

Will a program written for pi A+ work on pi 3B

thanks
crofter

User avatar
bob_binz
Posts: 441
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK

Re: program for pi A+

Sat Jun 23, 2018 11:10 am

More than likely. What's it written in?

--
BBz

crofter
Posts: 55
Joined: Thu Feb 22, 2018 11:28 pm

Re: program for pi A+

Sat Jun 23, 2018 11:26 am

not sure

thanks

User avatar
DougieLawson
Posts: 34167
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: program for pi A+

Sat Jun 23, 2018 1:18 pm

crofter wrote:
Sat Jun 23, 2018 10:53 am
hi

Will a program written for pi A+ work on pi 3B

thanks
crofter
It's completely compatible. It's only when you start using features of the 2B, 3B or 3B+ processor that you get incompatible code with the older Raspberries and the Zeros.

But compiling on RPi1B, B+, CM or Zero, Zero (with camera) or ZeroW and running on RPi2B, RPi3B, RPi3B+, CM3 or CM3L is fully supported.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

User avatar
rpdom
Posts: 12879
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: program for pi A+

Sat Jun 23, 2018 1:51 pm

That depends on if the program is accessing certain hardware functions using direct memory addressing. The base address of things like the GPIO differ for the different versions of the SoC.

Of course if you are just using normal Linux calls for most things, or using the GPIOMEM interface, it will be fine as the gpio drivers handle the addressing for you.

User avatar
Arjan
Posts: 256
Joined: Sat Sep 08, 2012 1:59 pm

Re: program for pi A+

Sat Jun 23, 2018 8:21 pm

crofter wrote:
Sat Jun 23, 2018 10:53 am

Will a program written for pi A+ work on pi 3B
Program compatibility between Raspberry Pi models can not be guaranteed.

Most of all, it depends on your program language..

When your program is written in a high-level language, and -not- programming directly to devices, then the program will most likely work on a Raspberry Pi Model 3B.
http://www.raspberrypi-dmx.org/
Open Source DMX/RDM/MIDI/OSC/Art-Net/sACN solutions

User avatar
WillBoxOwO
Posts: 66
Joined: Wed Jun 27, 2018 10:24 pm

Re: program for pi A+

Sat Aug 18, 2018 11:40 pm

Can you tell us what youre trying to run?
I like cats

User avatar
bensimmo
Posts: 3335
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: program for pi A+

Sun Aug 19, 2018 6:27 am

Since I have them.

Yes, it will more than likely work.
There are a few things that may need tweaking.

So if you get any errors, post them up.

Depending on how long ago it was, some things may have changed.
The major one being UART serial.
In the program, if it errors, then change anything saying /dev/ttyAMA0 to /dev/serial0

This is just the program.
If the card is going in a Pi3 from an A+, it is likely the card (if some years old) will not run on the Pi3 (or 3B+).

If it's all a new setup, then things will be easier :-)

Return to “Beginners”