libopencm3-examples icon indicating copy to clipboard operation
libopencm3-examples copied to clipboard

target memory segment string descriptor

Open mzltn opened this issue 2 years ago • 0 comments

Hi,

In the following files: examples/stm32/f1/lisa-m-1/usb_dfu/usbdfu.c examples/stm32/f1/other/usb_dfu/usbdfu.c examples/stm32/f1/stm32-h103/usb_dfu/usbdfu.c examples/stm32/f1/stm32-h103/usb_iap/usbiap.c

I found a the following comment: /* The ST Microelectronics DfuSe application needs this string.
* The format isn't documented... */
.iInterface = 4,

This index refers to the following USB descriptor string: /* This string is used by ST Microelectronics' DfuSe utility. / "@Internal Flash /0x08000000/8001Ka,56*001Kg",

I have found a description of the string in the following document and it seems to fit the one above: UM0290 User manual: STR7/STR9 USB developer kit / section 4.3.2 DFU mode descriptor set "DFU mode configuration descriptor"

However, I could not confirm that this applies to the sources mentioned above and do not want to add misleading info. The dev kits that are mentioned in the above document seem to use another chip. If someone could confirm, this could be added as a comment.

Best regards, Zoltán

mzltn avatar Apr 10 '22 14:04 mzltn