Recent

Author Topic: Raspberry Pi Pico and Freepascal  (Read 6083 times)

MiR

  • Full Member
  • ***
  • Posts: 203
Re: Raspberry Pi Pico and Freepascal
« Reply #30 on: April 03, 2021, 07:23:48 pm »
Today I have adjusted code to a major internal change in the pico-sdk, to better support flash chips in different sizes and from different manufacturers the foundation has created board specific 2nd stage bootloaders.

I have implemented this also in my repo, but there are also changes needed in the fpc compiler itself to support this.

So, please make sure that you upgrade to both latest/greatest versions of both of my repositories:

https://github.com/michael-ring/freepascal

and

https://github.com/michael-ring/pico-fpcexamples

Users of fpcupdeluxe should select 'embedded' as FPC-Version in Basic Tab and then Install/update FPC only or both FPC+Laz.

Then switch to Cross Tab, select 'arm' and 'embedded' and then select subarch armv6m and then 'Install Compiler'

Please currently do not us 'update all' as there may be an issue with that function, please see:

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/374

Update:

for now, please use

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.8.2m

version, this fixes the issue that after rebuild the system unit cannot be found.


Update: latest fpcupdeluxe 1.8.2r fixes the issues

Have fun,

Michael

« Last Edit: April 15, 2021, 04:06:12 pm by MiR »

dbannon

  • Hero Member
  • *****
  • Posts: 1393
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Raspberry Pi Pico and Freepascal
« Reply #31 on: May 04, 2021, 03:20:09 am »
Hi Michael, time I said thanks for this, especially the well written docs on the wiki.  Great job !

Documenting stuff is boring but essential for our open source ideals !

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

MiR

  • Full Member
  • ***
  • Posts: 203
Re: Raspberry Pi Pico and Freepascal
« Reply #32 on: May 07, 2021, 06:46:15 pm »
Thank you!

Just a quick update, I did a workaround to fix a crash when sysutils are used, please both update fpc and my repo if you need to use sysutils

(See issue #38864)

Michael

 

TinyPortal © 2005-2018