MikroE Quail

Overview

MikroE Quail for STM32 is a development board containing an STM32F427 [2] microcontroller. It is equipped with four mikroBUS sockets. The edges of the board are lined with screw terminals and USB ports for additional connectivity.

Hardware

The Quail board contains the following connections:

  • Four mikroBUS connectors

  • 32 screw terminals

  • two USB ports, one for programming and one for external storage

Furthermore the board contains three LEDs that are connected to the microcontroller.

Supported Features

The mikroe_quail 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.

Connections and IOs

The four mikroBUS interfaces are aliased in the device tree so that their peripherals can be accessed using mikrobus_N_INTERFACE so e.g. the SPI on bus 2 can be found by the alias mikrobus_2_spi. The numbering corresponds with the marking on the board.

For connections on the edge connectors, please refer to Quail for STM32 User Manual [1].

Programming and Debugging

The mikroe_quail board supports the runners and associated west commands listed below.

flash debug

Applications for the mikroe_quail board can be built and flashed in the usual way (see Building an Application and Run an Application for more details).

Flashing

The board ships with a locked flash, and will fail with the message:

Error: stm32x device protected

Unlocking with OpenOCD makes it possible to flash.

$ openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg \
    -f /usr/share/openocd/scripts/target/stm32f4x.cfg -c init\
    -c "reset halt" -c "stm32f4x unlock 0" -c "reset run" -c shutdown

Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b mikroe_quail samples/hello_world
west flash

You should see the following message on the console:

Hello World! mikroe_quail

Debugging

You can debug an application in the usual way. Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b mikroe_quail samples/hello_world
west debug

References