Argonkey

96Boards Argonkey

Overview

96Boards Argonkey board is based on the ST Microelectronics STM32F412CG Cortex M4 CPU.

This board acts as a sensor hub platform for all 96Boards compliant family products. It can also be used as a standalone board.

96Boards Argonkey

96Boards Argonkey

Hardware

96Boards Argonkey provides the following hardware components:

  • STM32F412CG in UFQFPN48 package

  • ARM® 32-bit Cortex®-M4 CPU with FPU

  • 100 MHz max CPU frequency

  • 1.8V work voltage

  • 1024 KB Flash

  • 256 KB SRAM

  • On board sensors:

    • Humidity: STMicro HTS221

    • Temperature/Pressure: STMicro LPS22HB

    • ALS: Intersil ISL29034

    • Proximity: STMicro VL53L0X

    • Accelerometer/Gyroscope: STMicro LSM6DSL

    • Geomagnetic: STMicro LIS2MDL

    • AMR Hall sensor: MRMS501A

    • Microphone: STMicro MP34DT05

  • 2 User LEDs

  • 16 General purpose LEDs

  • GPIO with external interrupt capability

  • UART

  • I2C (3)

  • SPI (1)

  • I2S (1)

Supported Features

The 96b_argonkey board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
96b_argonkey/stm32f412cx target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M4F CPU1

arm,cortex-m4f

ADC

on-chip

STM32F4 ADC1

st,stm32f4-adc

Audio

on-board

STMicroelectronics MPXXDTYY digital PDM microphone family1

st,mpxxdtyy

CAN

on-chip

STM32 CAN controller2

st,stm32-bxcan

Clock control

on-chip

STM32F4 RCC (Reset and Clock controller)1

st,stm32f4-rcc

on-chip

STM32 HSE Clock1

st,stm32-hse-clock

on-chip

Generic fixed-rate clock provider12

fixed-clock

on-chip

PLL node binding for STM32F2, STM32F4 and STM32F7 device2

st,stm32fx-pll-clock

on-chip

STM32 Clock multiplexer1

st,stm32-clock-mux

on-chip

STM32 Microcontroller Clock Output (MCO)2

st,stm32-clock-mco

Counter

on-chip

STM32 counters14

st,stm32-counter

DMA

on-chip

STM32 DMA controller (V1)11

st,stm32-dma-v1

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller8

st,stm32-gpio

I2C

on-chip

STM32 I2C V1 controller3

st,stm32-i2c-v1

I2S

on-chip

STM32 I2S controller13

st,stm32-i2s

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

on-chip

STM32 External Interrupt Controller1

st,stm32-exti

LED

on-board

TI LP3943 LED1

ti,lp3943

on-board

Group of GPIO-controlled LEDs1

gpio-leds

Memory controller

on-chip

STM32 Battery Backed RAM1

st,stm32-bbram

MMC

on-chip

STM32 SDMMC Disk Access1

st,stm32-sdmmc

MTD

on-chip

STM32F4 flash memory1

st,stm32f4-nv-flash

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP1

usb-nop-xceiv

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

Power management

on-chip

STM32 power controller1

st,stm32-pwr

PWM

on-chip

STM32 PWM12

st,stm32-pwm

QSPI

on-chip

STM32 QSPI Controller1

st,stm32-qspi

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-board

STMicroelectronics HTS221 humidity and temperature sensor on I2C bus1

st,hts221

on-board

STMicroelectronics LPS22HB pressure sensor1

st,lps22hb-press

on-board

STMicroelectronics VL53L0X Time of Flight sensor1

st,vl53l0x

on-chip

STM32 quadrature decoder6

st,stm32-qdec

on-board

STMicroelectronics LSM6DSL 6-axis accelerometer and gyrometer accessed through I2C bus1

st,lsm6dsl

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

on-chip

STM32 VREF+1

st,stm32-vref

on-chip

STM32 VBAT1

st,stm32-vbat

Serial controller

on-chip

STM32 USART13

st,stm32-usart

SMbus

on-chip

STM32 SMBus controller3

st,stm32-smbus

SPI

on-chip

STM32 SPI controller23

st,stm32-spi

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

on-chip

STM32 timers14

st,stm32-timers

USB

on-chip

STM32 OTGFS controller1

st,stm32-otgfs

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

Connections and IOs

LED
  • LED1 / User1 LED = PB2

  • LED2 / User2 LED = PC13

Push buttons
  • BUTTON = RST (BT1)

  • BUTTON = USR (BT2)

System Clock

96Boards Argonkey can be driven by an internal oscillator as well as the main PLL clock. In default board configuration, the 16MHz external oscillator is used to drive the main PLL clock to generate a System Clock (SYSCLK) at 84MHz. On the bus side, AHB clock runs at 84MHz, while APB1/APB2 clock runs at 42MHz.

Serial Port

On 96Boards Argonkey, Zephyr console output is assigned to USART1. Default settings are 115200 8N1.

I2C

96Boards Argonkey board has up to 3 I2Cs. The default I2C mapping is:

  • I2C1_SCL : PB6

  • I2C1_SDA : PB7

  • I2C2_SCL : PB10

  • I2C2_SDA : PB9

  • I2C3_SCL : PA8

  • I2C3_SCL : PB4

I2C3 goes to the P2 connector and can be used to attach external sensors. It goes to 100Kbit maximum.

SPI

96Boards Argonkey board has 2 SPIs. SPI1 is used in slave mode as the communication bus with the AP. SPI2 is used in master mode to control the LSM6DSL sensor. The default SPI mapping is:

  • SPI1_NSS : PA4

  • SPI1_SCK : PA5

  • SPI1_MISO : PA6

  • SPI1_MOSI : PA7

  • SPI2_NSS : PB12

  • SPI2_SCK : PB13

  • SPI2_MISO : PB14

  • SPI2_MOSI : PB15

Programming and Debugging

Building

Here is an example for building the Hello World application.

# From the root of the zephyr repository
west build -b 96b_argonkey samples/hello_world

Flashing

96Boards Argonkey can be flashed by two methods, one using the ROM bootloader and another using the SWD debug port (which requires additional hardware).

Flashing using the ROM bootloader requires a special activation pattern, which can be triggered by using the BOOT0 pin. The ROM bootloader supports flashing via USB (DFU), UART, I2C and SPI, but this document describes the UART case only. You can read more about how to enable and use the ROM bootloader by checking the application note AN2606 [1] .

Using ROM bootloader:

Hereafter the documents describes basic steps to perform ArgonKey firmware flashing on a Linux PC using UART as communication channel.

  1. Connect ArgonKey UART to your Linux PC using, for example, a USB-TTL serial cable. The flashing procedure has been tested using a TTL-232RG [4] cable with FTDI chip. The UART pins on ArgonKey can be found on the P3 low speed expansion connector on the back of the board.

    • GND (black) to ArgonKey GND (P3.1)

    • TXD (orange) to ArgonKey UART0_TXD (P3.5)

    • RXD (yellow) to ArgonKey UART0_RXD (P3.7)

    When the USB cable is inserted to the Linux PC the following device will be created: /dev/ttyUSBx (x is usually ‘0’).

  2. Force STM32F412CG to enter in Bootloader mode

    • Connect BOOT0 to 1V8 (link P2.1 to P3.30)

    • Press and release the RST button

  3. Use stm32flash utility to flash the ArgonKey:

$ stm32flash  -w zephyr.bin -v -g 0x08000000 /dev/ttyUSB0

See References section for more info on stm32flash [2].

Using SWD debugger:

Select a commercial JTAG/SWD h/w tool and connect it to ArgonKey P4 connector.

The ArgonKey has been tested using the ST-LINK/V2 [3] tool. Once that the tool is connected to the PC through USB, it presents itself as a USB composite device with mass storage capability. The device can be then mounted in linux and the f/w can be actually copied there and will be automatically flashed by the ST-LINK onto the ArgonKey.

Example:

$ mount /dev/sdb /mnt
$ cp zephyr.bin /mnt
$ umount /mnt

Debugging

References