STM32

= Introduction =

This is starting page for Linux on STMicroelectronics STM32 microcontrollers family. These pages are not meant to replace official STMicroelectronics support.

= Supported Boards =

STM32F429i-Discovery
The STM32F429 Discovery kit has the following features:
 * STM32F429 MCU (ARM Cortex-M4 up to 180MHz, 2MB internal flash, 256KB internal RAM)
 * 8MB SDRAM
 * USB OTG Full-Speed
 * 2.4" LCD
 * MEMS motion sensor
 * STLink/V2 (debugging)
 * Extension headers

= Toolchain =

Bare-metal toolchain
Bare-metal toolchain is used to compile Bootloader and Kernel. Version known to work here.

uClibc toolchain
ToDo

= Bootloaders =

AFBoot-STM32
AFBoot-STM32 has been developed by Andreas Färber and is available on his GitHub page.

The main advantage of this bootloader is its size (lees than 2KB). Indeed, the STM32F429 only has 2MB internal flash for Bootloader, Kernel, Rootfs and DTB.

A fork compatible with mainline Kernel (from v4.2-rc1) is available here.

The following tutorial covers the later version. git clone https://github.com/mcoquelin-stm32/afboot-stm32.git cd afboot-stm32 make stm32f429i-disco make flash_stm32f429i-disco

U-Boot
U-Boot STM32 port to mainline has been done by Kamil Lulko. The port is based on U-Boot fork from Emcraft, distributed on their GitHub page git clone git://git.denx.de/u-boot.git cd u-boot make ARCH=arm CROSS_COMPILE=arm-none-eabi- stm32f429-discovery_defconfig make ARCH=arm CROSS_COMPILE=arm-none-eabi-

Note that mainline Kernel requires some patches on top to work with U-Boot port, these patches are available on Kamil GitHub.

= Linux Kernel = = User Space =

Busybox
ToDo

Buildroot
A fork of Buildroot has been done by Kamil Lulko to add STM32 support. The git repo is available here. It builds Kernel, U-Boot and RootFS (busybox).

= Debug = = Flash Tools =