Forum > Embedded - ARM
crosscompilator for Pico - FpcUpDeluxe
krolikbest:
Hi,
I installed crosscompilator for Pico according to https://wiki.freepascal.org/ARM_Embedded_Tutorial_-_Installing_Lazarus_and_Free_Pascal not new Lazarus installation but for exising one I selected under Cross tab CPU-arm and the OS-embedded and on the 'Set subarch'- arm6m, arm target=armhf and abi=eabi (in fact these two opition were already selected). Then from https://github.com/michael-ring/pico-fpcexamples/tree/main I copied blinky example, set in Project Opitions target OS=embedded, CPU family=arm, target processor=armv6m but during compilation I get this
--- Quote ---Compile Project, OS: embedded, CPU: arm, Target: project1.elf: Exit code 1, Errors: 1, Hints: 2
Hint: Start of reading config file C:\fpcupdeluxe3\fpcupdeluxe\fpc\bin\x86_64-win64\fpc.cfg
Hint: End of reading config file C:\fpcupdeluxe3\fpcupdeluxe\fpc\bin\x86_64-win64\fpc.cfg
Verbose: Free Pascal Compiler version 3.2.2-r0d122c49 [2023/11/05] for arm
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Embedded
Verbose: Compiling project1.lpr
Verbose: PPU Loading C:\fpcupdeluxe3\fpcupdeluxe\fpc\units\arm-embedded\units\system.ppu
Verbose: PPU is compiled for another processor
Verbose: PPU Loading C:\fpcupdeluxe3\fpcupdeluxe\fpc\units\arm-embedded\system.ppu
Verbose: PPU is compiled for another processor
Fatal: Can't find unit system used by project1
Verbose: Compilation aborted
Verbose: C:\fpcupdeluxe3\fpcupdeluxe\fpc\bin\x86_64-win64\ppcrossarm.exe returned an error exitcode
--- End quote ---
Any hints?
Regards,
----------
Small update:
under this folder ...\fpc\units\arm-embedded\armv6m\eabi\rtl I've found all units but now compilator says that it can't find lnfodwrf. Searching through my folders give me some records but actually I can't find the right file (lnfodwrf) for the chosen hardware platform..
ojz0r:
Try to add "sysutils" to the units (under uses).
Laksen:
For infodwrf disable line info debug (-gl)
For compiling try setting target to default and ABI to default
krolikbest:
Thanks for hints. I'll check them out this afternoon.
krolikbest:
Hi,
I've installed new instance of Lazarus using of course FpcUpDeluxe but only for Pico. Then loaded the Blinky project. I had to set Target OS, CPU family and processor and set path to units. Then Build process gives me
--- Quote ---Compile Project, Mode: Raspberry Pi Pico, OS: embedded, CPU: arm, Target: H:\PROGRAMY\_pascal programy\LAZARUS\RASPBERRY PICO\prg1\bin\blinky.elf: Exit code 1, Errors: 1, Hints: 4
Hint: Start of reading config file C:\fpcupdeluxe4\fpc\bin\x86_64-win64\fpc.cfg
Hint: End of reading config file C:\fpcupdeluxe4\fpc\bin\x86_64-win64\fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-9929-g8d63a1ddfd [2022/01/18] for arm
Verbose: Copyright (c) 1993-2022 by Florian Klaempfl and others
Verbose: Target OS: Embedded
Verbose: Compiling blinky.lpr
Verbose: Compiling C:\fpcupdeluxe3\fpcupdeluxe\fpc\units\arm-embedded\units\pico_gpio_c.pas
Verbose: Compiling C:\fpcupdeluxe3\fpcupdeluxe\fpc\units\arm-embedded\units\pico_c.pas
Verbose: Compiling C:\fpcupdeluxe3\fpcupdeluxe\fpc\units\arm-embedded\units\pico_sync_c.pas
Verbose: Assembling pico_sync_c
pico_c.pas(103,17) Hint: Parameter "fmt" not used
pico_c.pas(103,33) Hint: Parameter "Args" not used
Verbose: Assembling pico_c
Verbose: Assembling pico_gpio_c
Verbose: Compiling C:\fpcupdeluxe3\fpcupdeluxe\fpc\units\arm-embedded\units\pico_timer_c.pas
Verbose: Assembling pico_timer_c
Verbose: Assembling blinky
Verbose: Linking H:\PROGRAMY\_pascal programy\LAZARUS\RASPBERRY PICO\prg1\bin\blinky
blinky.lpr(20,0) Error: Can't open executable "H:\PROGRAMY\_pascal programy\LAZARUS\RASPBERRY PICO\prg1\bin\blinky.elf"
Verbose: Compilation aborted
Verbose: C:\fpcupdeluxe4\fpc\bin\x86_64-win64\ppcrossarm.exe returned an error exitcode
--- End quote ---
Meantime I tested more or less stupid combinations of settings, but mostly I end up with this what is above...
Navigation
[0] Message Index
[#] Next page