How to create your board device tree

Revision as of 11:51, 14 August 2019 by Registered User


1. Article purpose[edit source]

This article will help you to create a first TF-A device tree with STM32CubeMX, to bring up your board.

2. TF-A setup to get the serial log and USB boot[edit source]

  • In STM32CubeMX:
    • Create a new project from the MCU selector
    • Select the STM32MP1 part number that is mounted on your board
    • In Pinout & Configuration:
      • RCC: enable the HSE according to your board setup. The HSE is needed for various PLL (USB, DDR).
      • UARTx: setup the serial console.
        • Assign UARTx to the "Cortex-A7 non-secure" and the "Boot loader" contexts
        • Select the "Asynchronous" mode
        • In the pinout view, change the RX and TX lines (if STM32CubeMX default proposal is not good)
Info white.png Information
UARTx instance is gotten from the device tree for the console but it is hard coded to UART4 with TX on GPIOG11 for the crash console, in plat/st/stm32mp1/stm32mp1_def.h