BeagleBoard.org · POCKETBEAGLE-SC-569
PocketBeagle
PocketBeagle: an OSD3358 system-in-package (TI AM3358: one Cortex-A8 core) running Linux, with two 36-pin headers (P1, P2).
In short
PocketBeagle: an OSD3358 system-in-package (TI AM3358: one Cortex-A8 core) running Linux, with two 36-pin headers (P1, P2).
Specs
From the board’s model in the store.
- Processor
- OSD3358 (AM3358) · 1× Cortex-A8
- Clock
- 1 GHz
- RAM
- 512 MB
- GPIO pins
- 46
- ADC
- ADC 6 ch 12-bit
- Logic level
- 3.3 V
- Power
- 3.3 V (P1_14, P2_23): 3.3 V
- Current per pin
- not in the board’s model yet
- Buses
- UART ×2, 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 1
- Digital 10
- Analog 6
- Bus 10
- p1_06pin P1_06
- p1_08pin P1_08
- p1_10pin P1_10
- p1_12pin P1_12
- p1_19pin P1_19
- p1_21pin P1_21
- p1_23pin P1_23
- p1_25pin P1_25
- p1_26pin P1_26
- p1_27pin P1_27
- p1_28pin P1_28
- p1_30pin P1_30
- p1_32pin P1_32
- p1_33pin P1_33 (PWM)
- p1_36pin P1_36 (PWM)
- p2_05pin P2_05
- p2_07pin P2_07
- p2_09pin P2_09
- p2_1pin P2_1 (PWM)
- p2_11pin P2_11
- p2_25pin P2_25
- p2_27pin P2_27
- p2_29pin P2_29
- p2_3pin P2_3 (PWM)
- p2_31pin P2_31
- p2_36pin P2_36
- v3v33.3 V (P1_14, P2_23)
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-levelIt gives 3.3 V (3.3 V (P1_14, P2_23)). Power each part from a rail at its own voltage.
check
board-supplyIt has 2 UART, 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.
project Blink "Blink" {
version "0.1.0"
edition "1.0"
uses arche-hw-store "^0.1"
}
include "arche-hw-store/boards/pocketbeagle/pocketbeagle.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 P1_02, and the blinker.
system Hw "Blink" {
part board: Pocketbeagle
part led: GpioLed
part blinker: Blinker
board.p1_02 -> 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 }
}
}
// 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 156 files archec writes.