Basic Information; Pins; Including Binary Information - Raspberry Pi RP2040 Getting Started

Table of Contents

Advertisement

Getting started with Raspberry Pi Pico

Basic information

This information is really handy when you pick up a Pico and don't know what is on it!
Basic information includes
program name
program description
program version string
program build date
program url
program end address
program features, this is a list built from individual strings in the binary, that can be displayed (e.g. we will have one
for UART stdio and one for USB stdio) in the SDK
build attributes, this is a similar list of strings, for things pertaining to the binary itself (e.g. Debug Build)

Pins

This is certainly handy when you have an executable called
was built for, as different boards may have different pins broken out.
Static (fixed) pin assignments can be recorded in the binary in very compact form:
$ picotool info --pins sprite_demo.elf
File sprite_demo.elf:
Fixed Pin Information
0-4:
6-10:
11-15:
16:
17:
18:
19:
20:
21:

Including Binary information

Binary information is declared in the program by macros; for the previous example:
$ picotool info --pins sprite_demo.elf
File sprite_demo.elf:
Fixed Pin Information
0-4:
6-10:
11-15:
16:
17:
18:
19:
Binary Information
Red 0-4
Green 0-4
Blue 0-4
HSync
VSync
Display Enable
Pixel Clock
UART1 TX
UART1 RX
Red 0-4
Green 0-4
Blue 0-4
HSync
VSync
Display Enable
Pixel Clock
but you forgot what RP2040-based board it
hello_serial.elf
70

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RP2040 and is the answer not in the manual?

This manual is also suitable for:

Pico

Table of Contents

Save PDF