cancel
Showing results for 
Search instead for 
Did you mean: 

Linux Commands for STM32 System Bootloader over UART

AMull.11
Associate II

How to connect UART for bootloader and upload new file to chip in Linux.

If anyone knows please help me out.

1 ACCEPTED SOLUTION

Accepted Solutions

In Linux like in any other OS you can write a program that talks over a serial port.

For example, minicom, microcom and so on. You can even write a python script for this.

AN3155 describes the protocol.

If this still looks too complex or too much work, find somebody else to help.

-- pa

View solution in original post

3 REPLIES 3
zzzzz
Senior

Which STM MCU you use? Do you mean port Linux (like uboot) to your platform or just receive Linux typed command through UART and based on the command to load file?

AMull.11
Associate II

MCU - STM32H743BITx

I am working on one of the project where 2 Devices are there,

1) SOM based Device (TORADEX SOM - HOST

2) Microcontroller based device(STM32H743BITx - TARGET).

I have updated the new firmware to the TARGET (STM32H743BITx) from STM32CubeProgrammer over UART in Windows.

But requirement is to update the new firmware from the HOST(TORADEX SOM) to TARGET(STM32H743BITx).

The HOST(TORADEX SOM) is Linux based OS.

I went through the AN3155 but I'm unable to understand how to send those commands in Linux or is there any other way to achieve this.

Because I didn't find any information regarding the commands whether it is a Linux commands or windows commands anywhere in the AN3155.

So i need to understand how it can be done.

Please help me out.

In Linux like in any other OS you can write a program that talks over a serial port.

For example, minicom, microcom and so on. You can even write a python script for this.

AN3155 describes the protocol.

If this still looks too complex or too much work, find somebody else to help.

-- pa