Hello from Northern Germany

BlackBrix
Posts: 31
Joined: Wed Dec 06, 2017 7:49 am

Re: Hello from Northern Germany

Post by BlackBrix » Sat Dec 30, 2017 10:42 am

regarding a possible USB MSD (Device) Bootloader for STM32F1xx I found this repo
https://github.com/cedar-renjun/usb_msd_bootloader
and as a fork
https://github.com/DeqingSun/usb_msd_bootloader

which I find very interesting

from the chinese manual I can understand that the MSD Bootloader is configured for 512k flash size (2k page size) and uses the flash up do 0x08004FFF (using ~20kByte ?)
the fork tries to adopt it to use smaller devices with 1k page size

It seems that this is just a "dump" of his Keil project folder (?)
with my limited knowledge I am not able to rearrange all that so that it can be built stand-alone with gcc-arm-none-eabi toolchain and a makefile and so on ...

_____________________________

[edit]

another possible approach to get a USB MSD (Device) Bootloader for STM32F1xx can be the work of the Swiss µTasker-Project,
where Mark Butcher does some "magical things" with different processor-families,
and for STM32 too ...

part of his µTasker-"OS" (or SW-framework) is always a so called "Serial Loader", that can contain a MSD-Bootloader as well.
--> https://www.youtube.com/watch?v=H4TYM9jY2-g
for STM32 you can find it here http://www.utasker.com/forum/index.php?topic=1697.0
SW-download (zip) is here: http://www.utasker.com/forum/index.php? ... attach=651
if you dig into this zip archive you will see ...

(his documentation is also very interesting -> http://www.utasker.com/docs/documentation.html
especially this one http://www.utasker.com/docs/STM32/uTask ... cument.pdf and this one http://www.utasker.com/docs/uTasker/uTa ... Loader.PDF)
Last edited by BlackBrix on Sat Dec 30, 2017 9:17 pm, edited 3 times in total.

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

Re: Hello from Northern Germany

Post by RogerClark » Sat Dec 30, 2017 8:29 pm

There is another thread about USB MSD bootloader, which is written by some guy in Russia

Unfortunately this bootloader does not understand the FAT file system, so you have to use something like DD on Linux to send the raw data to the device.

The main problem with MSD bootloaders is the size. I think that they would be at least 16k ,which is double the size of the DFU bootloader.
The F103C8 only officially has 64k flash, so at least 1/4 of all flash would be taken by the bootloader.

Post Reply