Forum > PDAs and Smartphones

Platform eXtended Library on aarch64

(1/1)

ertank:
Hello,

I wonder if someone already has a solution for compiling subject library.
It has some Pi 2 (ARMv7) assembler instructions not compiling under 64 bit OS.

PXL.Boards.RPi.pas: line 383:

--- Code: ---procedure WriteMemSafe(const Address: Pointer; const Value: Cardinal);
asm
{$IFDEF RPi2}
  dmb
  str r1, [r0]
  dmb
{$ELSE}
  str r1, [r0]
  str r1, [r0]
{$ENDIF}
end;

--- End code ---

I get Unknown identifier "R1" compiler error and I don't know assembler and just stuck when I wanted to modify an older project.

Any help is appreciated.

Thanks & Regards,
Ertan

DonAlfredo:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---If you feel lucky, try to replace r[#] with x[#].

ertank:
Thank you.
This fixed the compiler error.
But, I am stuck with the /dev/gpiomem access
Searching for additional help in here: https://forums.raspberrypi.com/viewtopic.php?t=366809

DonAlfredo:
You might have a look at this c-code.
https://github.com/joan2937/pigpio/blob/c33738a320a3e28824af7807edafda440952c05d/pigpio.c#L13773
Look at pi_peri_phys.

Navigation

[0] Message Index

Go to full version