FpUpDeluxe Cross Compiler arm 32 Bit Raspberry Pi Zero

Für Fragen zur Programmiersprache auf welcher Lazarus aufbaut
Antworten
Acia6850
Beiträge: 15
Registriert: Mo 9. Okt 2023, 18:45
OS, Lazarus, FPC: Windows + WSL / Linux Debian Rasbian OS (L 3.0.0 FPC 3.3.2)
CPU-Target: 64Bit
Wohnort: LK Ludwigsburg

FpUpDeluxe Cross Compiler arm 32 Bit Raspberry Pi Zero

Beitrag von Acia6850 »

Hallo,

Nach dem Start des Consolen Programmes gibt es folgende Ausgabe

wgs@raspi-zero-frog-A:~/Tools $ ./cRpiZeroDemo
An unhandled exception occurred at $00010AD0:
EAccessViolation: Access violation
$00010AD0

Das gleiche Programm läuft mit der selben Kompilat auf einem Raspberry PI 3B ohne Probleme.

Ich habe für den Zero alle Armv6 Zielprozessoren getestet keiner ist auf dem Zero lauffähig.
Wenn ich das Program auf dem Raspberry PI 3B kompiliere läuft es mit default Vorgaben für das Ziel auch auf dem Raspberry PI Zero.

Was muss man für eine Zielprozessor auswählen ?

Source :

program cRpiZeroDemo;

{$mode objfpc}{$H+}

uses
{$IFDEF LINUX}
cthreads,
{$ENDIF}
Sysutils, Classes;

procedure xRun;
begin
WriteLn('Raspi-zero 32Bit');
end;

begin
xRun;
end.

DonAlfredo
Beiträge: 74
Registriert: Do 28. Sep 2017, 10:26

Re: FpUpDeluxe Cross Compiler arm 32 Bit Raspberry Pi Zero

Beitrag von DonAlfredo »

See : https://forum.lazarus.freepascal.org/in ... 139.0.html
I am interested in getting this working.

Acia6850
Beiträge: 15
Registriert: Mo 9. Okt 2023, 18:45
OS, Lazarus, FPC: Windows + WSL / Linux Debian Rasbian OS (L 3.0.0 FPC 3.3.2)
CPU-Target: 64Bit
Wohnort: LK Ludwigsburg

Re: FpUpDeluxe Cross Compiler arm 32 Bit Raspberry Pi Zero

Beitrag von Acia6850 »

Thank You for your quick info.

I think a solution of this bug or problem is not so easy.

I think the best workaround is to develope with Lazarus on windos crosscompiler.
if the compilation result is ok then move the source to a 32 bit Raspberry PI system (Raspberry pi 3) and compile the source again.

Now you can move the compilation to RP Zero and it runs.

Not the best way but the proposal in info text is not so easy.

Maybe it give a solution of the maker of fpupdeluxe.

Antworten