How to use UART as serial boot device with STM32CubeProgrammer

Revision as of 11:42, 16 November 2021 by Registered User

OpenSTLinux distribution do not provide flashlayout files to use UART as serial boot device.


Refer to Using_STM32Programmer_over_UART article to know how to modify a flashlayout file to use UART as serial boot device.

You can use this modified flashlayout as described in STM32CubeProgrammer#How to flash with STM32CubeProgrammer article.

For example, if the provided file FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv can be used on USB with the command:

   STM32_Programmer_CLI -c port=usb1 -w FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv

You replace tf-a-stm32mp157f-dk2-usb.stm32 to tf-a-stm32mp157f-dk2-uart.stm32 in this tsv file and the result file FlashLayout_sdcard_stm32mp157c-dk2-optee_uart.tsv can be used on UART port /dev/ttyACM1 with the command:

   STM32_Programmer_CLI -c port=/dev/ttyACM1 -w FlashLayout_sdcard_stm32mp157c-dk2-optee_uart.tsv