2023-10-13 01:11 AM
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.
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.
2023-10-14 03:50 PM
> - 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
2023-10-14 04:28 PM
31 CE
08 00 00 00[08]
07 FF FF FF FF FF FF FF FF[07]