First of all, areally big Thank You MiR for Your effort on supporting the pico.
I received mine and I immediately look for the fpc way, so I'm here.
As a noob I ordered 1 pico only, so I'll buy the debugger soon.
I'm thinking about creating a unit for each header (pico_gpio.pas, pico_uart.pas, rtc..), does it make sense?
I'm trying to get the blink sample You published working, the first compile and run on a pico without any issue, the problem is on the second example at full speed:
Compile Project, OS: embedded, CPU: arm, Target: project1.elf: Exit code 1, Errors: 9, Hints: 3
Hint: Start of reading config file /home/turro/fpc-embedded/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/turro/fpc-embedded/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-r48418 [2021/02/04] for arm
Verbose: Copyright (c) 1993-2020 by Florian Klaempfl and others
Verbose: Target OS: Embedded
Verbose: Compiling project1.lpr
project1.lpr(15,10) Hint: Local proc "__aeabi_uidiv" is not used
Verbose: Assembling project1
Error: /home/turro/fpc-embedded/projects/Blinky_pico/clocks.c.obj: In function `clock_configure':
Error: /home/turro/Documenti/Raspberrypico/pico-sdk/src/rp2_common/hardware_clocks/clocks.c:52: undefined reference to `__aeabi_uldivmod'
Error: /home/turro/Documenti/Raspberrypico/pico-sdk/src/rp2_common/hardware_clocks/clocks.c:46: undefined reference to `__assert_func'
Error: /home/turro/fpc-embedded/projects/Blinky_pico/pll.c.obj: In function `pll_init':
Error: /home/turro/Documenti/Raspberrypico/pico-sdk/src/rp2_common/hardware_pll/pll.c:26: undefined reference to `__assert_func'
Error: /home/turro/Documenti/Raspberrypico/pico-sdk/src/rp2_common/hardware_pll/pll.c:29: undefined reference to `__assert_func'
Error: /home/turro/Documenti/Raspberrypico/pico-sdk/src/rp2_common/hardware_pll/pll.c:35: undefined reference to `__assert_func'
Error: /home/turro/Documenti/Raspberrypico/pico-sdk/src/rp2_common/hardware_pll/pll.c:39: undefined reference to `__assert_func'
Linking /home/turro/fpc-embedded/projects/Blinky_pico/project1
project1.lpr(51,0) Error: Error while linking
project1.lpr(51,0) Verbose: There were 1 errors compiling module, stopping
Verbose: Compilation aborted
Verbose: /home/turro/fpc-embedded/fpc/bin/x86_64-linux/ppcrossarm returned an error exitcode
Any suggestion?