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

STM32duino bootloader aka Maple bootloader
Post Reply
VadimEL
Posts: 67
Joined: Sat Aug 13, 2016 1:28 pm

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

Post by VadimEL » Wed Jul 19, 2017 9:17 am

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 :(

User avatar
RogerClark
Posts: 7453
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

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

Post by RogerClark » Wed Jul 19, 2017 10:04 am

Do you mean you want to backup the old bootloader ?

I think its still available on Leaflabs's github repo

VadimEL
Posts: 67
Joined: Sat Aug 13, 2016 1:28 pm

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

Post by VadimEL » Wed Jul 19, 2017 10:09 am

no, I want make full dump of maple mini BIN file. And upload it with STM32 ST-LINK Utility to new blank maple mini.

stevestrong
Posts: 1813
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

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

Post by stevestrong » Wed Jul 19, 2017 11:29 am

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

VadimEL
Posts: 67
Joined: Sat Aug 13, 2016 1:28 pm

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

Post by VadimEL » Wed Jul 19, 2017 1:02 pm

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.

User avatar
martinayotte
Posts: 1229
Joined: Mon Apr 27, 2015 1:45 pm

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

Post by martinayotte » Wed Jul 19, 2017 2:35 pm

I'm using Texane ST-Link :
https://github.com/texane/stlink

Code: Select all

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

VadimEL
Posts: 67
Joined: Sat Aug 13, 2016 1:28 pm

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

Post by VadimEL » Wed Jul 19, 2017 4:41 pm

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)

stevestrong
Posts: 1813
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

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

Post by stevestrong » Wed Jul 19, 2017 4:58 pm

If it disturbs, then you could manually add the missing 0xFFs by using a HEX editor (HxD).

Post Reply