2023-02-07 12:57 AM
Hello,
I was trying to program STM32 using CLI, I want to READ/WRITE the memory flash section of STM32
I tried STM32_Programmer_CLI -c port=/dev/ttyS0 -w memory=flash readfile=HS_read.bin address=0x08000000 size=16
STM32_Programmer_CLI -c port=COM15 these commands, but it was showing the following error
Can you help me with what going wrong here?
And also can you help me with the correct STM commands?
2023-02-07 01:38 AM
are you using an Stlink? did you tried with CubeProgrammer already?(just checking)
2023-02-07 05:33 AM
I tried STM32_Programmer_CLI -c port=COM15 -w memory=flash readfile=HS_read.bin address=0x08000000
2023-02-07 05:36 AM
Hello Javier,
I am using STLINK itself, and verified with CubeProgrammer
2023-02-07 06:36 AM
COM USB and other interfaces is designed to use with internal system bootloader, not for direct flash.
This CLI can only over stlink
"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=SWD mode=UR -d yourbuild.elf -v -g
"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=USB1 -d yourbuild.elf -v -g
here need be MCU in system or compatible bootloader mode
ofcourse many switches instead -d is possible ...
2023-02-08 04:38 AM
What exactly I was doing that I need to read the memory flash section and store it in a bin file?
And also How to write a specific value to STM32?
Can you help me with the proper STM32 commands?
2023-02-08 05:56 AM
How you connect ? This isnt arduino...
run cmd CLI without params and search your syntax, right is
-r 0X80YYYY 16 store.bin
2023-02-09 01:31 AM
Hello Master Mind,
The right cmd which you sent got worked... thank you
How to write a specific value to STM32 memory flash section?
Can you help me with this?
2023-02-10 01:43 AM
Hello Master Mind,
The right cmd which you sent got worked... thank you
How to write a specific value to STM32 memory flash section?
Can you help me with this?
2023-02-10 03:53 AM
write is more complicated, need erase etc. Based on pages and sectors.
Do what i write run only CLI without params and read showed info.