Shenzhen Xunlong (Orange Pi) · Orange Pi 5 Pro

Orange Pi 5 Pro

Orange Pi 5 Pro: a Rockchip RK3588S (four Cortex-A76 and four Cortex-A55 cores, a 6 TOPS NPU) running Linux, with a 40-pin header.

LinuxShenzhen Xunlong (Orange Pi)
Orange Pi 5 ProShenzhen Xunlong (Orange Pi) · RK3588S · 8 × Cortex-A76 + Cortex-A55 · 2.4 GHz · 4 GB · LinuxRK3588SOrange Pi 5 Pro12345671i2c1 I²CI²C 12i2c3 I²CI²C 33i2c4 I²CI²C 4 (default)4spi0 SPISPI 05spi4 SPISPI 46v3v3 Power3.3 V (pins 1, 17)7v5 Power5 V (pins 2, 4)28 GPIO pins, each a port (pin3, …)

In short

Orange Pi 5 Pro: a Rockchip RK3588S (four Cortex-A76 and four Cortex-A55 cores, a 6 TOPS NPU) running Linux, with a 40-pin header.

Clock2.4 GHz
Flash—
RAM4 GB
GPIO28
Logic3.3 V

Specs

From the board’s model in the store.

Processor
RK3588S · 8× Cortex-A76 + Cortex-A55
Clock
2.4 GHz
RAM
4 GB
GPIO pins
28
Logic level
3.3 V
Power
3.3 V (pins 1, 17): 3.3 V; 5 V (pins 2, 4): 5 V
Current per pin
not in the board’s model yet
Buses
I²C ×3, SPI ×2
Runs
Linux

Pin map

Each pin by what it does. Hover or tap a pin to see what else it can be.

  • Power 2
  • Digital 8
  • pin7pin 7 (PWM)
  • pin11pin 11 (PWM)
  • pin12pin 12 (PWM)
  • pin13pin 13 (PWM)
  • pin27pin 27 (PWM)
  • pin28pin 28 (PWM)
  • pin32pin 32 (PWM)
  • pin33pin 33 (PWM)
  • v3v33.3 V (pins 1, 17)
  • v55 V (pins 2, 4)

Watch out

What archec checks for this board, from its data. Each one names the check that catches it.

  • Its pins work at 3.3 V. A 5 V sensor’s output on one of them needs a level shifter between them.

    check pin-level

  • It gives 3.3 V (3.3 V (pins 1, 17)), 5 V (5 V (pins 2, 4)). Power each part from a rail at its own voltage.

    check board-supply

  • It has 3 I²C, 2 SPI. One more bus of a kind than that is an error.

    check board-peripheral

First model

A blink for this board: the board, an LED and a part that turns it over every 500 ms. archec checks it, then writes the code on the right.

main.archeOpen in the playground
project Blink "Blink" {
  version "0.1.0"
  edition "1.0"
  uses arche-hw-store "^0.1"
}

include "arche-hw-store/boards/orange-pi-5-pro/orange-pi-5-pro.arche"
include "arche-hw-store/devices/led/led.arche"

/// Turns the LED over at each step.
component Blinker "Blinker" {
  out led: requires Led
  fn blink "Blink" {
    ```arche
    led.toggle()
    ```
    wcet 50us
  }
}

/// The board, an LED on pin 3, and the blinker.
system Hw "Blink" {
  part board:   OrangePi5Pro
  part led:     GpioLed
  part blinker: Blinker
  board.pin3 -> led.pin
  blinker.led -> led.led
}

/// The firmware: the blinker every 500 ms.
deployment OnBoard "On the board" {
  system Hw
  platform Hw
  binary blink on board {
    language go
    thread main "Blink" { runs blinker; period 500ms; step blink }
  }
}
archec gen --target goblink/parts.go
// Code generated by archec gen --target go: the parts the binary runs. DO NOT EDIT: run it again.


package main

import "math"

var _ = math.Abs

// @arche Blinker main.arche:11 component
// Blinker: Blinker
type Blinker struct {
	archePart
	Inbox chan Envelope
	Out   func(port string, m any)
	// Call: port.op(…) in the model — the operation of the part the port's link reaches (main.go sets it)
	Call  func(port, op string, args ...any) any
}

// @arche Blinker.init main.arche:11 init
func NewBlinker() *Blinker {
	self := &Blinker{Inbox: make(chan Envelope, 16), Out: func(string, any) {}, Call: func(string, string, ...any) any { return nil }}
	// USER CODE BEGIN Blinker.init
	// USER CODE END Blinker.init
	return self
}

// Send: a message on one of the part's ports.
func (self *Blinker) Send(port string, m any) { self.Out(port, m) }

// @arche Blinker.blink main.arche:13 fn
// Blink: Blink
func (self *Blinker) Blink() {
	self.Call("led", "toggle")
}

// @arche Blinker.receive main.arche:11 receive
// Receive: a message that arrived on one of the part's ports.
func (self *Blinker) Receive(port string, m any) {
	_, _ = port, m
}

blink/parts.go, one of the 155 files archec writes.

Open in the playground

Compare every board