cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader Write command via terminal

DIvan.1
Associate III

Hello,

I'm trying to write a program into a "STM32F334C6T6". For programing I want to use serial communication (UART1) and terminal (CoolTerm).

So far I got a success with Get, Get ID and Read Memory commands. (refer to this manual https://www.st.com/resource/en/application_note/an3155-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf )

But now I have a problem with writing something into a MCU. I don't understand how to write a bytes correct.

DIvan1_1-1697184595098.png

In this picture the arrow show, where I have a problem. 

Can you please help me how to send a correct command if I have this parameters (for example):

- Address = 08000000

- memoryd I want to write = FFFFFFFF (8 bytes)

Thank you very much.

 

2 REPLIES 2
TDK
Guru

> - memoryd I want to write = FFFFFFFF (8 bytes)

This is only 4 bytes.

But to write those 4 bytes, you would send the following 6 bytes in that step.

03
FF
FF
FF
FF
03

 

If you feel a post has answered your question, please click "Accept as Solution".

31 CE

08 00 00 00[08]

07 FF FF FF FF FF FF FF FF[07]

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..