Can I use a USB mass storage?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
sim222
Posts: 20
Joined: Wed Nov 27, 2019 12:04 am

Can I use a USB mass storage?

Post by sim222 » Thu Jun 17, 2021 10:43 pm

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.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Can I use a USB mass storage?

Post by davef » Thu Jun 17, 2021 10:55 pm

Check out the Teensy port.

sim222
Posts: 20
Joined: Wed Nov 27, 2019 12:04 am

Re: Can I use a USB mass storage?

Post by sim222 » Thu Jun 17, 2021 11:31 pm

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~

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Can I use a USB mass storage?

Post by davef » Fri Jun 18, 2021 1:40 am


User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Can I use a USB mass storage?

Post by Roberthh » Fri Jun 18, 2021 5:46 am

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.

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Can I use a USB mass storage?

Post by mattyt » Sat Jun 19, 2021 1:10 am

Many of the STM32 ports support USB mass storage; most notably both the original Pyboard and the newer Pyboard D.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Can I use a USB mass storage?

Post by Roberthh » Sat Jun 19, 2021 5:35 am

So you can connect e.g. a harddisk to to the board and write to it?

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Can I use a USB mass storage?

Post by mattyt » Sun Jun 20, 2021 7:39 am

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.

Post Reply