[fpc-pascal] How to build for arm6 in RaspberryPi on arm7?

Bo Berglund bo.berglund at gmail.com
Tue Sep 8 16:13:20 CEST 2020


On Tue, 08 Sep 2020 15:11:07 +0200, Bo Berglund via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

>Is there some project setting I can activate in order to build for
>*all* RPi devices by only using ARMv6 instructions?

I used Project/ProjectOptions/ConfigAndTarget and:
set Target CPU family = arm
set Target processor = ARMV6

The project built fine on an RPi4B with 4GB RAM
And it ran just fine on the dev RPi4

So I used scp to copy the executable over to an RPiZero and test it
there.

But I got an exception on this platform:

pi at rpizero:~/Downloads $ ./SerialTest 
An unhandled exception occurred at $00031C44:
EAccessViolation: Access violation
  $00031C44

This happened also after I ran a Run/CleanUpAndBuild operation, so
clearly there is something I am missing here.


-- 
Bo Berglund
Developer in Sweden



More information about the fpc-pascal mailing list