BeagleBoard.org · BBONE-BLACK-4G

BeagleBone Black

BeagleBone Black: a TI AM3358 (one Cortex-A8 core, two PRUs) running Linux, with two 46-pin headers (P8, P9).

LinuxBeagleBoard.org
BeagleBone BlackBeagleBoard.org · AM3358 · Cortex-A8 · 1 GHz · 512 MB · LinuxP9P8AM3358BeagleBone Black1234561i2c0 I²CI²C 02i2c2 I²CI²C 2 (default)3spi0 SPISPI 04spi1 SPISPI 15v3v3 Power3.3 V (P9_3, P9_4)6v5 Power5 V (P9_5, P9_6, from the DC jack)34 GPIO pins, each a port (p8_07, …)7 analog inputs

En bref

BeagleBone Black: a TI AM3358 (one Cortex-A8 core, two PRUs) running Linux, with two 46-pin headers (P8, P9).

Horloge1 GHz
Flash—
RAM512 MB
GPIO34
Logique3.3 V

Caractéristiques

Lues dans le modèle de la carte, dans le store.

Processeur
AM3358 · 1× Cortex-A8
Horloge
1 GHz
RAM
512 MB
Broches GPIO
34
CAN (ADC)
ADC 7 ch 12-bit
Niveau logique
3.3 V
Alimentation
3.3 V (P9_3, P9_4): 3.3 V (≤ 250 mA); 5 V (P9_5, P9_6, from the DC jack): 5 V
Courant par broche
pas encore dans le modèle de la carte
Bus
UART ×3, I²C ×3, SPI ×2
Tourne
sous Linux

Brochage

Chaque broche selon ce qu’elle fait. Survolez ou touchez une broche pour voir ce qu’elle peut être d’autre.

  • Alimentation 2
  • Numérique 9
  • Analogique 7
  • Bus 10
  • p8_13pin P8_13 (PWM)
  • p8_19pin P8_19 (PWM)
  • p9_11pin P9_11
  • p9_13pin P9_13
  • p9_14pin P9_14 (PWM)
  • p9_16pin P9_16 (PWM)
  • p9_17pin P9_17
  • p9_18pin P9_18
  • p9_21pin P9_21 (PWM)
  • p9_22pin P9_22 (PWM)
  • p9_24pin P9_24
  • p9_26pin P9_26
  • p9_28pin P9_28
  • p9_29pin P9_29
  • p9_30pin P9_30
  • p9_31pin P9_31
  • p9_33pin P9_33
  • p9_35pin P9_35
  • p9_36pin P9_36
  • p9_37pin P9_37
  • p9_38pin P9_38
  • p9_39pin P9_39
  • p9_40pin P9_40
  • p9_42pin P9_42 (PWM)
  • p9_19p9_19
  • p9_20p9_20
  • v3v33.3 V (P9_3, P9_4)
  • v55 V (P9_5, P9_6, from the DC jack)

Attention

Ce qu’archec vérifie pour cette carte, d’après ses données. Chaque point nomme la vérification qui l’attrape.

  • Ses broches travaillent en 3.3 V. La sortie d’un capteur 5 V sur l’une d’elles demande un adaptateur de niveau entre les deux.

    vérification pin-level

  • La sortie 3.3 V (P9_3, P9_4) donne au plus 250 mA en 3.3 V. Additionnez ce que vous alimentez avec.

    vérification board-current

  • Elle donne 3.3 V (3.3 V (P9_3, P9_4)), 5 V (5 V (P9_5, P9_6, from the DC jack)). Alimentez chaque pièce depuis une sortie à sa propre tension.

    vérification board-supply

  • Elle a 3 UART, 3 I²C, 2 SPI. Un bus de plus d’un même type est une erreur.

    vérification board-peripheral

Premier modèle

Un clignotement pour cette carte : la carte, une LED et une partie qui l’inverse toutes les 500 ms. archec le vérifie, puis écrit le code à droite.

main.archeOuvrir dans le playground
project Blink "Blink" {
  version "0.1.0"
  edition "1.0"
  uses arche-hw-store "^0.1"
}

include "arche-hw-store/boards/beaglebone-black/beaglebone-black.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 P8_07, and the blinker.
system Hw "Blink" {
  part board:   BeagleboneBlack
  part led:     GpioLed
  part blinker: Blinker
  board.p8_07 -> 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, l’un des 154 fichiers qu’archec écrit.

Ouvrir dans le playground

Comparer toutes les cartes