QP/C  6.5.1
Blinky on EFM32-SLSTK3401A

This example implements the Blinky sample application on the EFM32-SLSTK3401A board (ARM Cortex-M4F).

bd_EFM32-SLSTK3401A.jpg
EFM32-SLSTK3401A board

The Blinky example is located in the directory qpc/examples/arm-cm/blinky_efm32-slstk3401a, which is organized as follows:

qpc/ // QP/C installation directory
+-examples/ // QP/C examples directory (application)
| +-arm-cm/ // QP/C examples for ARM Cortex-M
| | +-blinky_efm32-slstk3401a/ // Blinky example on the EFM32-SLSTK3401A board
| | | +-qk/ // QK version
| | | | +-arm/ // ARM-KEIL toolchain
| | | | | +-blinky-qk.uvprojx // uVision project
| | | | +-gnu/ // GNU-ARM toolchain
| | | | | +-Makefile // Makefile for building the project
| | | | +-iar/ // IAR-ARM toolchain
| | | | | +-blinky-qk.eww // IAR EW-ARM workspace
| | | | +-bsp.c // BSP for the QK kernel
| | | +-qv/ // QV version
| | | | +-arm/ // ARM-KEIL toolchain
| | | | | +-blinky-qk.uvprojx // uVision project
| | | | +-gnu/ // GNU-ARM toolchain
| | | | | +-Makefile // Makefile for building the project with GNU-ARM
| | | | +-iar/ // IAR-ARM toolchain
| | | | | +-blinky-qk.eww // IAR EW-ARM workspace
| | | | +-bsp.c // BSP for the QV kernel
| | | +-win32/ // Windows emulation (multithreaded)
| | | | +-Makefile // Makefile for building the project with MinGW
| | | | +-bsp.c // BSP for the Win32
| | | +-win32-qv/ // Windows emulation (single thread)
| | | | +-Makefile // Makefile for building the project with MinGW
| | | | +-bsp.c // BSP for the Win32-QV

Features Demonstrated

  • cooperative QV kernel
    • with ARM-KEIL toolchain
    • with GNU-ARM toolchain
    • with IAR-ARM toolchain
  • preemptive run-to-completion QK kernel
    • with ARM-KEIL toolchain
    • with GNU-ARM toolchain
    • with IAR-ARM toolchain
  • Windows emulation (console multithreaded)
  • Windows emulation (console, single threaded: win32-qv)

Running the Example

Once programmed into the board, the example blinks the on-board LED about once a second.


Windows Emulation

The Windows emulation is a simple console application that produces the following output:

blinky_win32.png
Blinky emulation running in a Windows console

Next: DPP on EK-TM4C123GXL