Running U-Boot Print

Each STM32F7 System-On-Module (SOM) comes pre-loaded with U-Boot. U-Boot runs as the primary firmware from the STM32F7 internal Flash on each power-on / reset. U-Boot performs initial initialization and configuration of the system and then acts as a bootloader for Linux.

U-Boot is probably the most popular firmware monitor for Linux. It is developed and maintained by DENX Software Engineering ( If you need detailed information on any aspects of U-Boot operation, DENX publishes extensive U-Boot user documentation at their web site.

On the STM32F7 microcontrollers, U-Boot runs directly from the internal on-chip Flash. Volatile data (stack, variables, dynamic pool) are maintained in the internal SRAM. External RAM is not used unless you explicitly call a U-Boot command with an argument pointing to a memory location in SDRAM. Please note however that Linux runs from external SDRAM so when you proceed to boot Linux, SDRAM is actively in use.

As soon as the board is powered on or reset, the STM32F7 proceeds to boot the U-Boot firmware from the internal Flash printing the following output to the serial console:

U-Boot 2010.03-cortexm-2.1.0 (Sep 19 2016 - 11:18:48)

CPU : STM32F7 (Cortex-M7)
Freqs: SYSCLK=200MHz,HCLK=200MHz,PCLK1=50MHz,PCLK2=100MHz
Board: STM32F7 SOM Rev 1.A,
Flash: 16 MB
In: serial
Out: serial
Err: serial
Net: STM32_MAC
Hit any key to stop autoboot: 0

If you hit any key on the serial console before the amount of time (number of seconds) defined by the U-Boot bootdelay variable has elapsed, you will enter the U-Boot interactive command monitor. From the command monitor you can run U-Boot commands to examine memory, load an image from Ethernet, boot Linux from a loaded image or perform any other action supported by U-Boot.

Use the help command to print out the list of the enabled U-Boot commands:

STM32F7-SOM> help
? - alias for 'help'

As mentioned above, the DENX website publishes detailed documentation describing use of various U-Boot commands. The application notes available on the Emcraft web site describe how to use U-Boot commands to perform specific actions on the STM32F7 system-on-module.