STM32F2xx,bootloader from USB pen,is it possible?

Hi, I read in the datasheet about that by means the so called DFU is it possible to bootload when the STM32F2xx act as USB device. Anyone has hints or links about how to bootload from a pen drive using STM32F2XX as USB host ???

Many thanks

Reply to
blisca
Loading thread data ...

No.

formatting link

Reply to
linnix

Never tried it, but it seems the answer is yes. (As in the F1 series.) From the STM32F205/7xx data sheet (CD00237391.pdf):

2.2.14 Boot modes

At startup, boot pins are used to select one out of three boot options:

  • Boot from user Flash
  • Boot from system memory
  • Boot from embedded SRAM

The boot loader is located in system memory. It is used to reprogram the Flash memory by using USART1 (PA9/PA10), USART3 (PC10/PC11 or PB10/PB11), CAN2 (PB5/PB13), USB OTG FS in Device mode (PA11/PA12) through DFU (device firmware upgrade).

-- Roberto Waltman

[ Please reply to the group, return address is invalid ]
Reply to
Roberto Waltman

Sorry, I should read more carefully. The DFU mode allows you to (re)program the internal flash memory, not to run code from an external device.

More info here, "AN3156: USB DFU protocol used in the STM32 bootloader"

formatting link

-- Roberto Waltman

[ Please reply to the group, return address is invalid ]
Reply to
Roberto Waltman

formatting link

Thanks to linnix and Roberto Waltman.

sorry about my bad English;i didn't mean to run code from an external USB pen,just to reprogram the flash memory ,so that after further reset the STM32F205 could run from its Flash the upgraded firmware loaded by the USB pen. But,as Roberto remarks,

From the STM32F205/7xx data sheet (CD00237391.pdf):

2.2.14 Boot modes

.... .... .... USB OTG FS in Device mode (PA11/PA12) through DFU (device firmware upgrade).

Does it finally mean that i cannot use an USB device as a pen drive in any way to reprogram the flash of STM32F205 ??

Thanks again

Reply to
blisca

blisca wrote: ...

The built in DFU bootloader is a USB device, so you can't reprogram with another device, as your stick.

However with writing a custom In-Application-Programmer(IAP), the STM could function as a USB host and read the new program from a stick and use it on the next boot. But I don't know about such a program public available.

Bye

--
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Reply to
Uwe Bonnes

There is something in ST's web vaults: DFUSE "Getting started with DfuSe USB device firmware upgrade ..."

formatting link

-- Roberto Waltman

[ Please reply to the group, return address is invalid ]
Reply to
Roberto Waltman

This may help:

formatting link

formatting link

Reply to
hamilton

An application which can handle the USB Mass Storage Device standard is according to one of my sources about 20 kB. An application which can handle all the oddities in existing USB Memory Sticks is about 40 kB.

If you can't get it off the shelf, it looks like a major undertaking to develop this.

Probably easier to connect to an SD-Card.

BR Ulf Samuelsson eMagii

Reply to
Ulf Samuelsson

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.