Page 1 of 1

how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 9:17 am
by VadimEL
Need make full dump with bootloader and flash it to another maplemini.
I try to use Arduino IDE - export bin file, and flash with ST-LINK Utility, but I think - the is no boot loader and it do not work :(

Re: how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 10:04 am
by RogerClark
Do you mean you want to backup the old bootloader ?

I think its still available on Leaflabs's github repo

Re: how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 10:09 am
by VadimEL
no, I want make full dump of maple mini BIN file. And upload it with STM32 ST-LINK Utility to new blank maple mini.

Re: how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 11:29 am
by stevestrong
The easiest way is to use the STLink utility to download and then upload the whole flash area.
PYSTLINK is an alternative: https://github.com/pavelrevak/pystlink

Re: how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 1:02 pm
by VadimEL
Image
can not save all dump from address 0x08000000 to 8020000 size 128kBytes(20000(hex))

I have bin file from arduino IDE. (sketch->export bin file) BUT it do not contain bootloader (I think)
I try make ALL DUMP (program+bootloader) with ST LINK - but ERROR(can not save)
--------------------------------
I need make BIN file, becose I do not want share source code, I want share BIN file, what everybody can flash it to maple mini.

Re: how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 2:35 pm
by martinayotte
I'm using Texane ST-Link :
https://github.com/texane/stlink

Code: Select all

/usr/local/bin/st-flash read dump.bin 0x08000000 0x20000

Re: how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 4:41 pm
by VadimEL
I use STM32 ST-LINK Utility v3.9.0.exe and it's ok saved
Image

but why end address 1FFF0 == 131056
and not 128кб*1024=131072 байт == 20000 (HEX)

Re: how to make full dump of maplemini with STM32 ST-LINK Utility

Posted: Wed Jul 19, 2017 4:58 pm
by stevestrong
If it disturbs, then you could manually add the missing 0xFFs by using a HEX editor (HxD).