Difference between revisions of "ARM Embedded Tutorial - FPC and the Raspberry Pi Pico"

From Lazarus wiki
Jump to navigationJump to search
m
Line 25: Line 25:
  
 
[[ARM Embedded Tutorial - Raspberry Pi Pico Blinking the onboard LED]]
 
[[ARM Embedded Tutorial - Raspberry Pi Pico Blinking the onboard LED]]
 +
  
 
Our first Blinky example was running at reduced CPU speed, in the next version we will set the processor to full speed:
 
Our first Blinky example was running at reduced CPU speed, in the next version we will set the processor to full speed:

Revision as of 03:56, 31 January 2021

English (en)

The Raspberry Pi Foundation has released the Raspberry Pi Pico, a very cheap Microcontroller board with quite interesting specs.

More Details here:

Raspberry Pi Pico Specifications

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.

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.


To install the required versions of Lazarus and Free Pascal please see here:

ARM Embedded Tutorial - Installing Lazarus and Free Pascal


To prepare a PicoProbe and to setup Lazarus please follow this guide:

ARM Embedded Tutorial - Raspberry Pi Pico Setting up for Development


Now we are ready for our first Program, as practice in the embedded programming world we start with blinking the on-board LED:

ARM Embedded Tutorial - Raspberry Pi Pico Blinking the onboard LED


Our first Blinky example was running at reduced CPU speed, in the next version we will set the processor to full speed:

ARM Embedded Tutorial - Raspberry Pi Pico running at full CPU speed


This page is WIP, I received my Boards on 29.01.2021, upgrading it as I go....