2023-02-06 07:59 AM
We have a new project and would like it to have some features similar to the STM32 on an STLink:
a) Emulate a Thumbdrive using MCU FLASH and/or an external serial FLASH IC. The files should be accessible by both the STM32 and any PC connected to the USB on the board for holding configuration and logs.
b) Drag and drop self programming (This is a variation of what the STLink does to attached boards, and the STLink firmware upgrade process).
c) VCP, a virtual UART for diagnostics.
d) Bonus if some security method is included.
Can anyone recommend a starting point?
I've tried some examples in MX, some worked, some didn't.
Not sure where to start with combining them to all work in one STM32 on a single USB Device connection to a PC, maybe someone has already done something like this? I'm happy to write up the results for others if we can get it working.
Thank you for any help.
Paul
Solved! Go to Solution.
2023-02-06 09:09 AM
a) youre tring to implement a USB mass storage (MSC) device.
b) youre tring to implement a USB mass storage (MSC) bootloader.
c) in addition to the mass storage (MSC) bootloader you want a CDC USB device, so youre walking into the USB composite devices realm.
d) cool
This sounds like something that has been done 100times, is it easy? no
to accomodate the filesystem and enough space for bootloading from filesystem and storing sensor data you will probably need all the FLASH memory you can find or a SD card
something like this?
2023-02-06 09:09 AM
a) youre tring to implement a USB mass storage (MSC) device.
b) youre tring to implement a USB mass storage (MSC) bootloader.
c) in addition to the mass storage (MSC) bootloader you want a CDC USB device, so youre walking into the USB composite devices realm.
d) cool
This sounds like something that has been done 100times, is it easy? no
to accomodate the filesystem and enough space for bootloading from filesystem and storing sensor data you will probably need all the FLASH memory you can find or a SD card
something like this?
2023-02-06 10:18 AM
Javier,
Thank you for the link, USB Composite Device sounds like just what we need. I'll definitely give this a try.
Paul
2023-02-22 07:07 AM
Did get TinyUSB running on an STM32L476G-Discovery, using
Will play more when time allows.
Paul