Approved version. Approved on: 14:43, 27 January 2022
Difference between revisions of "How to use UART as serial boot device with STM32CubeProgrammer"
[unchecked revision] | [quality revision] |
(Merge articles)
|
m
|
[unchecked revision] | [quality revision] |
(Merge articles)
|
m
|
Applicable for | STM32MP13x lines, STM32MP15x lines |
OpenSTLinux distribution does not provide the flash memory layout (flashlayout) files required to use a UART as a serial boot device.
Refer to Using_STM32Programmer_over_UART article to see how to modify a flashlayout file to use a UART as serial boot device.
You can use this modified flashlayout as described in STM32CubeProgrammer#How to flash with STM32CubeProgrammer article.
For example, the provided FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv file can be used on USB with the command:
STM32_Programmer_CLI -c port=usb1 -w FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv
By replacing tf-a-stm32mp157f-dk2-usb.stm32 to tf-a-stm32mp157f-dk2-uart.stm32 in this tsv file, the resulting 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
<noinclude> {{ApplicableFor |MPUs list=STM32MP13x,STM32MP15x |MPUs checklist=STM32MP13x,STM32MP15x }}</noinclude> OpenSTLinux distribution does not provide the flash memory layout (flashlayout) files required to use a UART as a serial boot device. Refer to [[STM32CubeProgrammer_flashlayout#Using_STM32Programmer_over_UART|Using_STM32Programmer_over_UART]] article to see how to modify a flashlayout file to use a UART as serial boot device. You can use this modified flashlayout as described in [[STM32CubeProgrammer#How to flash with STM32CubeProgrammer article]]. For example, the provided '''FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv''' file can be used on USB with the command: {{PC$}} STM32_Programmer_CLI -c port={{Highlight|usb1}} -w {{HighlightParam|FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv}} By replacing '''tf-a-stm32mp157f-dk2-{{Highlight|usb}}.stm32''' to '''tf-a-stm32mp157f-dk2-{{Highlight|uart}}.stm32''' in this tsv file, the resulting file {{HighlightParam|FlashLayout_sdcard_stm32mp157c-dk2-optee}}{{Highlight|_uart}}{{HighlightParam|.tsv}} can be used on UART port {{Highlight|/dev/ttyACM1}} with the command: {{PC$}} STM32_Programmer_CLI -c port={{Highlight|/dev/ttyACM1}} -w {{HighlightParam|FlashLayout_sdcard_stm32mp157c-dk2-optee}}{{Highlight|_uart}}{{HighlightParam|.tsv}} <noinclude> [[Category:How to populate boards]] {{PublicationRequestId | 22115 | 2022-01-04 | Review done by Philp S on stm32mpu-v3 wiki}}</noinclude>
Line 22: | Line 22: | ||
<noinclude> |
<noinclude> |
||
[[Category:How to populate boards]] |
[[Category:How to populate boards]] |
||
− | {{PublicationRequestId | 22115 | 2022-01-04 |}} |
+ | {{PublicationRequestId | 22115 | 2022-01-04 | Review done by Philp S on stm32mpu-v3 wiki}} |
</noinclude> |
</noinclude> |