Page 1 of 1

Can I use a USB mass storage?

Posted: Thu Jun 17, 2021 10:43 pm
by sim222
Hi guys,

I am trying to develop a data logger using 3 UARTs and want to use a USB mass storage instead of a default microSD card.
I think micropython should have the host function for it.
However, I can't find a suitable library or class for it.
Is there any way to use it?

Thanks for your help in advance.

Re: Can I use a USB mass storage?

Posted: Thu Jun 17, 2021 10:55 pm
by davef
Check out the Teensy port.

Re: Can I use a USB mass storage?

Posted: Thu Jun 17, 2021 11:31 pm
by sim222
davef wrote:
Thu Jun 17, 2021 10:55 pm
Check out the Teensy port.
Thanks for your reply..
When I visit the site, I think the boards don't seem to support Micropython.
I am looking for the board to support Micropython.
Anyway thanks~

Re: Can I use a USB mass storage?

Posted: Fri Jun 18, 2021 1:40 am
by davef

Re: Can I use a USB mass storage?

Posted: Fri Jun 18, 2021 5:46 am
by Roberthh
The Teensy port of Micropython does not support USB mass storage. I do not know if any port does. There is Circuitpython for Teensy 4.x which supports SD Card, and SD card support for the MP port for Teensy 4.x - or to say better MIMXRT devices - is under construction. It may take a few weeks before it's ready.

Re: Can I use a USB mass storage?

Posted: Sat Jun 19, 2021 1:10 am
by mattyt
Many of the STM32 ports support USB mass storage; most notably both the original Pyboard and the newer Pyboard D.

Re: Can I use a USB mass storage?

Posted: Sat Jun 19, 2021 5:35 am
by Roberthh
So you can connect e.g. a harddisk to to the board and write to it?

Re: Can I use a USB mass storage?

Posted: Sun Jun 20, 2021 7:39 am
by mattyt
Oh, apologies, I misunderstood; assumed it was in the other direction (ie, can mount the device as USB mass storage). My bad! That'll teach me for reading posts late at night. :)

No, I'm not aware of aware of any implementation of host mass storage.