Installing U-Boot to the STM32H753i-EVAL Board Print

 

This application note explains how to install the U-Boot firmware to the STM32H753i-EVAL.

Hardware Set-Up

The following hardware set-up is required for installation of the software to the STM32H753i-EVAL:

  1. Change the JP7/JP8 jumpers settings to the "2-3" position to access the board serial console via the USB composite device.
  2. Install the microSD card into the CN13 connector.
  3. Connect the STM32H753i-EVAL board to a Linux host through the CN23 Micro-USB connector.
  4. The serial console access is required to run U-Boot on the STM32H753i-EVAL board. The serial console operates in U-Boot and Linux with the following parameters:
    • Baud rate - 115200
    • Data bits - 8
    • Stop bits - 1
    • Parity - none

Installable Images

The images to be installed onto the STM32H753i-EVAL can be obtained using one of the two approaches, as follows:

  • Build the images from the sources, as documented in Building U-Boot for the STM32H753i-EVAL
  • Use the prebuilt images provided by Emcraft.

Installing U-Boot to Internal Flash

Step through the following procedure to install the U-Boot to the internal Flash of the STM32H753i-EVAL board:

  1. Run the following command on the Linux development host:
  2. $ st-flash --serial 066AFF343339415043094721 write u-boot.bin 0x08000000 st-flash 1.7.0-246-gc721751 2023-08-09T10:52:47 INFO common.c: STM32H74x_H75x: 128 KiB SRAM, 2048 KiB flash in at least 128 KiB pages. file u-boot.bin md5 checksum: 9da4d3227766882d2d2f5d9f914117, stlink checksum: 0x01a79b48 2023-08-09T10:52:47 INFO common_flash.c: Attempting to write 320790 (0x4e516) bytes to stm32 address: 134217728 (0x8000000) -> Flash page at 0x8000000 erased (size: 0x20000) -> Flash page at 0x8020000 erased (size: 0x20000) -> Flash page at 0x8040000 erased (size: 0x20000) 2023-08-09T10:52:50 INFO flashloader.c: Starting Flash write for H7 320790/320790 bytes written 2023-08-09T10:52:57 INFO common_flash.c: Starting verification of write complete 2023-08-09T10:53:00 INFO common_flash.c: Flash written and verified! jolly good! $

  3. Connect to the STM32H753i-EVAL console using a serial terminal utility, for example:
  4. $ picocom -b 115200 /dev/ttyACM0

  5. Verify that the U-Boot SPL has been successfully installed. Reset the board and confirm that the following output appears on the serial UART console:
  6. U-Boot 2019.04- (Aug 09 2023 - 10:31:06 +0000) Model: STMicroelectronics STM32H753i-EVAL board DRAM: 32 MiB Flash: 2 MiB MMC: STM32 SDMMC2: 0 Loading Environment from MMC... OK In: serial@40011000 Out: serial@40011000 Err: serial@40011000 Net: eth0: ethernet@40028000 Hit any key to stop autoboot: 0 STM32H7-EVAL U-Boot >