Read/Write flash section using CLI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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?
- Labels:
-
Flash
-
STM32CubeProgrammer
-
STM32WB series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-07 1:38 AM
are you using an Stlink? did you tried with CubeProgrammer already?(just checking)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-07 5:33 AM
I tried STM32_Programmer_CLI -c port=COM15 -w memory=flash readfile=HS_read.bin address=0x08000000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-07 5:36 AM
Hello Javier,
I am using STLINK itself, and verified with CubeProgrammer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-07 6: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 ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-08 4: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-08 5:56 AM
How you connect ? This isnt arduino...
run cmd CLI without params and search your syntax, right is
-r 0X80YYYY 16 store.bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-09 1: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-10 1: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-10 3: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.
