Program the Raspberry Pi Pico with C ++

table of contents

With the Raspberry Pi Pico, the foundation of the same name has released a microcontroller for the first time. It is the smallest device in the Raspberry family and does not have a classic operating system such as Raspberry Pi OS. The Pico doesn’t need that either, since it is intended to only complete very specific tasks – and as quickly as possible. For this, the microcontroller has a kind of bootloader that receives code via USB and executes it.

The Raspberry Pi Pico is excellently equipped for its main tasks in the MSR area: the core is an RP2040 microcontroller chip, plus a processor dual-core arm Cortex M0 + as well as 264 KByte SRAM and 2 MByte integrated flash memory. The 26 GPIO pins (3.3V), which can be assigned different functions, are ideally suited for MSR tasks. Both I2C and SPI are represented by two dedicated hardware units each. There are also two UARTs and three ADC inputs that work with a nominal resolution of 12 bits.

More Raspi projects

The tiny can be programmed with MicroPython and / or C ++. Most of the Pico microcontrollers on the market should spend their time processing Python programs. However, the Raspberry Pi Foundation also offers a C-SDK that can be used to create professional programs.

  • Access to all heise + content
  • exclusive tests, advice & backgrounds: independent, critically well-founded
  • Read c’t, iX, MIT Technology Review, Mac & i, Make, c’t photography directly in your browser
  • register once – read on all devices – can be canceled monthly
  • first month free, then monthly from € 9.95
  • Weekly newsletter with personal reading recommendations from the editor-in-chief

Start FREE month

Start your FREE month now

Already subscribed to heise +?

Sign up and read

Register now and read articles right away

More information about heise +

Article Source