This is using Ultibo v2.3.0U of Lazarus, and [Verbose: Free Pascal Compiler version 3.3.1-11801-g3fe4fbf9c8 [2022/08/08] for arm]
gpsa.pas(680,33) Error: Compilation raised exception internally
Error: An unhandled exception occurred at $000000010BE4C10A:
Error: EAccessViolation: Access violation
Debug: $000000010BE4C10A
Debug:
Verbose: Compilation aborted
While compiling - at line <. $04: DecodeDop(UMp); >
(That procedure is in another unit)
case Arr[2] of // MsgClass (MsgID is at Arr[3])
$01: begin
case Arr[3] of
$07 : Decode_UBX_NAV_PVT(UMp); //most frequent
$20 : ; //Decode_UBX_NAV_TIMEGPS(UMp);
$04 : DecodeDOP(UMp);
$26 : ; //DecodeLeapSec(UMp);
$32 : DecodeSBAS(UMp);
$35 : DecodeSatInfo(UMp);
end;
end;
For now I've added < asm NOP end; > for cases $20: and $26 which resolves the issue for now.