Difference between revisions of "ARM Embedded Tutorials"
m (→Hardware: Updated page description) |
|||
(20 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{ARM Embedded Tutorials}} |
− | = | + | == Overview == |
− | + | Tutorials for programming ARM microcontrollers with FPC and Lazarus. This applies, for example, to the STM32 microcontrollers and RP2040 (Raspberry Pi Pico) microcontroller. | |
== Set up driver / cross compiler / IDE == | == Set up driver / cross compiler / IDE == | ||
+ | |||
+ | === STM32 === | ||
* [[ARM Embedded Tutorial - Entry FPC and STM32|Introduction to STM32 and FPC]] - How do I set up FPC / IDE (MSEide) to program an STM32F103C? | * [[ARM Embedded Tutorial - Entry FPC and STM32|Introduction to STM32 and FPC]] - How do I set up FPC / IDE (MSEide) to program an STM32F103C? | ||
− | == | + | === Raspberry Pi Pico === |
+ | |||
+ | 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. | ||
+ | |||
+ | * [[ARM Embedded Tutorial - Installing Lazarus and Free Pascal|Installing Lazarus and Free Pascal]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico Setting up for Development|Raspberry Pi Pico Setting up for Development]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico Setting up for Development|Raspberry Pi Pico Setting up for Development]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico Debugging the onboard LED|Raspberry Pi Pico Debugging the onboard LED]] | ||
+ | |||
+ | To access the Raspberry Pi Pico examples below, together with all needed dependencies, clone this repository: | ||
+ | |||
+ | https://github.com/michael-ring/pico-fpcexamples | ||
+ | |||
+ | Create issues and add feature requests on Github: | ||
+ | |||
+ | https://github.com/michael-ring/pico-fpcexamples/issues | ||
+ | |||
+ | == ARM programming Examples == | ||
− | === | + | === STM32 === |
* [[ARM Embedded Tutorial - Simple GPIO on and off output|GPIO - output and input]] - How to make a GPIO output | * [[ARM Embedded Tutorial - Simple GPIO on and off output|GPIO - output and input]] - How to make a GPIO output | ||
* [[ARM Embedded Tutorial - Simple Timer|Simple timer]] - A simple timer | * [[ARM Embedded Tutorial - Simple Timer|Simple timer]] - A simple timer | ||
− | = See also = | + | === Raspberry Pi Pico === |
+ | |||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico Blinking the onboard LED|Raspberry Pi Pico blinking the onboard LED]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico saying Hello via UART|Raspberry Pi Pico saying Hello via UART]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico using the ADC|Raspberry Pi Pico using the ADC]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico Scanning for I2C Devices|Raspberry Pi Pico Scanning for I2C Devices]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico using Displays and I2C|Raspberry Pi Pico using Displays and I2C]] | ||
+ | * [[ARM Embedded Tutorial - Raspberry Pi Pico using Displays and SPI|Raspberry Pi Pico using Displays and SPI]] | ||
+ | |||
+ | == See also == | ||
* [https://github.com/sechshelme/Lazarus-Embedded Examples] (external) | * [https://github.com/sechshelme/Lazarus-Embedded Examples] (external) | ||
* [[ARM]] - Cross compiler | * [[ARM]] - Cross compiler | ||
* [[AVR Embedded Tutorial|AVR Embedded Tutorials]] - Tutorials for AVR Embedded/Arduino | * [[AVR Embedded Tutorial|AVR Embedded Tutorials]] - Tutorials for AVR Embedded/Arduino | ||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 01:35, 1 March 2021
│
Deutsch (de) │
English (en) │
Overview
Tutorials for programming ARM microcontrollers with FPC and Lazarus. This applies, for example, to the STM32 microcontrollers and RP2040 (Raspberry Pi Pico) microcontroller.
Set up driver / cross compiler / IDE
STM32
- Introduction to STM32 and FPC - How do I set up FPC / IDE (MSEide) to program an STM32F103C?
Raspberry Pi Pico
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.
- Installing Lazarus and Free Pascal
- Raspberry Pi Pico Setting up for Development
- Raspberry Pi Pico Setting up for Development
- Raspberry Pi Pico Debugging the onboard LED
To access the Raspberry Pi Pico examples below, together with all needed dependencies, clone this repository:
https://github.com/michael-ring/pico-fpcexamples
Create issues and add feature requests on Github:
https://github.com/michael-ring/pico-fpcexamples/issues
ARM programming Examples
STM32
- GPIO - output and input - How to make a GPIO output
- Simple timer - A simple timer
Raspberry Pi Pico
- Raspberry Pi Pico blinking the onboard LED
- Raspberry Pi Pico saying Hello via UART
- Raspberry Pi Pico using the ADC
- Raspberry Pi Pico Scanning for I2C Devices
- Raspberry Pi Pico using Displays and I2C
- Raspberry Pi Pico using Displays and SPI
See also
- Examples (external)
- ARM - Cross compiler
- AVR Embedded Tutorials - Tutorials for AVR Embedded/Arduino