Recent

Author Topic: FPC cross compiler on Ubuntu18 to a Raspberry PICO.  (Read 996 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
FPC cross compiler on Ubuntu18 to a Raspberry PICO.
« on: April 11, 2023, 03:46:45 pm »
Code: Pascal  [Select][+][-]
  1. make crossinstall CPU_TARGET=ARM OS_TARGET=embedded SUBARCH=armv6m

Hey, in the mean while i am trying to install the FPC cross compiler on Ubuntu18 to a Raspberry PICO.

Does anybody have URL where the full command line option is? Like a mentioned above. To compile the compiler in the terminal? Greets, Wouter van Wegen

ccrause

  • Hero Member
  • *****
  • Posts: 862
Re: FPC cross compiler on Ubuntu18 to a Raspberry PICO.
« Reply #1 on: April 11, 2023, 04:36:30 pm »
There recommended way to install PICO support is to use fpcupdeluxe, see this wiki page.  Note that currently fpc needs a patch for PICO support, see this discussion.  This means that you cannot simply build a cross compiler with PICO support, unless a few modifications to the compiler source code is made - at least that is my interpretation of the current status.

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
Re: FPC cross compiler on Ubuntu18 to a Raspberry PICO.
« Reply #2 on: April 11, 2023, 05:20:45 pm »
Anoy body knows a compile command to compile it by hand ?, i quited with fpcupdeluxe.


And i am also looking for command line string to let ppcrossarm compile to a PICO executable file.

 8-)

Again, without the IDE
« Last Edit: April 11, 2023, 06:34:57 pm by pascalbythree »

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: FPC cross compiler on Ubuntu18 to a Raspberry PICO.
« Reply #3 on: April 11, 2023, 07:42:41 pm »
use fpcupdeluxe sources to find out what it is doing. or use the output in very verbose mode. The ultimate source for cross compiling is here : http://www.stack.nl/~marcov/buildfaq.pdf
 
« Last Edit: April 11, 2023, 07:51:41 pm by af0815 »
regards
Andreas

ccrause

  • Hero Member
  • *****
  • Posts: 862
Re: FPC cross compiler on Ubuntu18 to a Raspberry PICO.
« Reply #4 on: April 11, 2023, 11:00:37 pm »
The RP2040 patches by Michael Ring is now available for testing here: https://gitlab.com/ccrause/fpc-source/-/tree/rp2040

To download the code and build the cross compiler with RP2040 support:
Code: Bash  [Select][+][-]
  1. $ git clone https://gitlab.com/ccrause/fpc-source.git
  2. $ cd fpc-source
  3. $ git checkout rp2040
  4. $ make buildbase CPU_TARGET=ARM OS_TARGET=embedded SUBARCH=armv6m
  5.  
The make command only has the very basic options, add cross options, install prefix and so forth as needed.

 

TinyPortal © 2005-2018