Forum > Embedded - ARM

Raspberry Pi Pico and Freepascal

(1/11) > >>

MiR:
Raspberry Organization announced the Raspberry Pi Pico:

https://www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/

https://www.raspberrypi.org/products/raspberry-pi-pico/specifications/

which looks like a quite interesting (and cheap) microcontroller board with dual-core Cortex-M0.

The chip will also show up in Boards from Adafruit, Sparkfun and Arduino so I guess it will get quite popular.

I would like to spend some time in making this board available in Freepascal, anybody interested in joining the effort?

My boards should arrive in a week or so, I already created a version of FreePascal that automagically creates uf2 files for easy uploading of firmware to the board, now there is 'only' the task of creating a good unit for the board.

If you would like to help out please order at least two boards as you can use one board as a debug probe with software provided by Raspberry Foundation.

Michael

MarkMLl:
You beat me to it :-)

Review at https://hackaday.com/2021/01/20/raspberry-pi-enters-microcontroller-game-with-4-pico/

The really interesting question is whether some cut-down version of FPC's threads could be implemented.

MarkMLl

MiR:
I think Christo Crause has done some threads groundwork for freepascal on the esp32-freertos platform, theoretically freertos should run just fine on the board so what he did should also apply to the Pico.

ccrause:

--- Quote from: MiR on January 22, 2021, 10:46:01 pm ---I think Christo Crause has done some threads groundwork for freepascal on the esp32-freertos platform, theoretically freertos should run just fine on the board so what he did should also apply to the Pico.

--- End quote ---
It is a proof of concept with some ESP specific bits, but that can be fixed.  An alternative could be to use the pthreads library add-on which should be (more or less) compatible with FPC's cthreads wrapper unit.

MiR:
I implemented initial support for Raspi pico boards here:

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

Supported boards are:

RASPI_PICO
FEATHER_RP2040
ITZYBITZY_RP2040

I have not yet received Hardware so expect issues.....

StartupCode will likely need additional fixing to send the 2nd cpu to sleep on startup and names of IRQ Handlers are a mess and will likely have to change, RPI decided to give them non-CMSIS conformant naming (in fact there is no real naming) so I got creative myself here....

The repo also includes support for tons of STM32 chips and support for creating UF2 bootloader images.

Navigation

[0] Message Index

[#] Next page

Go to full version