Sign in Join
Wiki copytemporary

ARM Embedded Tutorial - FPC and the Raspberry Pi Pico: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: ARM Embedded Tutorial - FPC and the Raspberry Pi Pico

OldNewLine
1+The Raspberry Pi Foundation has released the Raspberry Pi Pico, a very cheap Microcontroller board with quite interesting specs.
2+
3+### Introduction
4+
5+[Raspberry Pi Pico Specifications](https://www.raspberrypi.org/products/raspberry-pi-pico/specifications/)
6+
7+To best use this tutorial you will need to buy (at least) two Raspberry Pi Pico, we will use one as a target and the second one as a debug probe. Do yourself a favour, invest \$4 for a second device, being able to debug is worth so much more.
8+
9+As the Pico is brand new and support for the board is a work in progress I'd recommend that you set up a dedicated installation of Lazarus and Free Pascal as you will need to use both trunk version of Lazarus and a specially patched version of FPC that includes the necessary adjustments so that FPC knows about the Pico. Also expect changes as we all learn along the way.
10+
11+### Setup
12+
13+To install the required versions of Lazarus and Free Pascal please see here:
14+
15+[[ARM Embedded Tutorial - Installing Lazarus and Free Pascal]]
16+
17+### PicoProbe
18+
19+To prepare a PicoProbe and to setup Lazarus please follow this guide:
20+
21+[[ARM Embedded Tutorial - Raspberry Pi Pico Setting up for Development]]
22+
23+### The Examples from Github
24+
25+To access the examples together with all needed dependencies clone this repository:
26+
27+<https://github.com/michael-ring/pico-fpcexamples>
28+
29+when you find errors in the code or would like to request another demo please enter an issue on github:
30+
31+<https://github.com/michael-ring/pico-fpcexamples/issues>
32+
33+### Example Programs
34+
35+Now we are ready for our first Program, as practice in the embedded programming world we start with blinking the on-board LED:
36+
37+##### Blinky
38+
39+[[ARM Embedded Tutorial - Raspberry Pi Pico Blinking the onboard LED]] Not suitable for the Raspberry Pi W
40+
41+##### Debugging
42+
43+The next step in this tutorial is to set up Debugging from within Lazarus
44+
45+[[ARM Embedded Tutorial - Raspberry Pi Pico Debugging the onboard LED]]
46+
47+The next peripheral to join the party is the UART:
48+
49+[[ARM Embedded Tutorial - Raspberry Pi Pico saying Hello via UART]]
50+
51+##### ADC
52+
53+Time to go Analog:
54+
55+[[ARM Embedded Tutorial - Raspberry Pi Pico using the ADC]]
56+
57+##### I2C
58+
59+Scanning the I2C Bus for Devices:
60+
61+[[ARM Embedded Tutorial - Raspberry Pi Pico Scanning for I2C Devices]]
62+
63+Talking to a Display via I2C:
64+
65+[[ARM Embedded Tutorial - Raspberry Pi Pico using Displays and I2C]]
66+
67+##### SPI
68+
69+Talking to a Display via SPI:
70+
71+[[ARM Embedded Tutorial - Raspberry Pi Pico using Displays and SPI]]
72+
73+### Building a Pico Compiler
74+
75+As indicated about, the most common way to get a working Pico compiler is to use fpcupdeluxe but you can, of course, build it yourself [[Building a Pico Compiler]].
76+
77+### Finally
78+
79+This page is WIP, I received my Boards on 29.01.2021, upgrading it as I go....
80+
81+---
82+*From the Free Pascal wiki, page "ARM Embedded Tutorial - FPC and the Raspberry Pi Pico", as it stood on 2024-03-08 after a change by Dbannon, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history