STM32_Programmer_cli Read specific memory range and save to file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 3:18 AM - last edited on ‎2024-04-03 6:58 AM by Peter BENSCH
I am able to read a memory location but do not have to save the result to a file. here is my command
STM32_Programmer_CLI.exe -c port=swd mode=ur Freq=4000 -r16 0x803c000 0xA c:\TPD\ST_Prog\guid.bin
The data is displayed in the cmd window correctly
0x0803C000 : 0614 BB17 E000 D169 6E39
how can I save it to file. I tried adding a path to the end of the command but nothing is saved. Am I missing a -xxx command somewhere?
Solved! Go to Solution.
- Labels:
-
STM32CubeProgrammer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 6:56 AM
The command -u or --upload gets the device memory content to a file, e.g.:
STM32_Programmer_CLI.exe -c port=swd mode=ur Freq=4000 -u 0x803c000 0xA c:\TPD\ST_Prog\guid.bin
Hope that helps?
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 6:56 AM
The command -u or --upload gets the device memory content to a file, e.g.:
STM32_Programmer_CLI.exe -c port=swd mode=ur Freq=4000 -u 0x803c000 0xA c:\TPD\ST_Prog\guid.bin
Hope that helps?
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 7:13 AM
Peter,
I receive this error
Warning: Wrong file path parameter in read command: "c:\tpd\st_prog\guid.txt"
Error: The read command you trying to perform (-u 0x803c000 0xa "c:\tpd\st_prog\guid.txt") is missing some arguments. Please refer to the Help to see how to use it.
command sent:
STM32_Programmer_CLI.exe -c port=swd mode=ur Freq=4000 -u 0x803c000 0xA c:\TPD\ST_Prog\guid.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 7:43 AM
Which version of STM32_Programmer_CLI are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 8:12 AM
STM32CubeProgrammer v2.16.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-04 2:57 AM
Hello @JKucz.1585 ,
Could you please try using a binary file (guid.bin) instead of a text file (guid.txt), as suggested in the command by @Peter BENSCH ?
Maryem.
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-04 6:37 AM
That did the trick. Thank you!
