USB Flash Drive with SAMA5D2 Xplained Ultra

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How would I use a flash drive with my SAMA5D2 Xplained Ultra Evaluation board, specifically with J13.

The user guide describes J13: "USB Host B. Supports USB host using a type A connector". J13 is connected to the UHPHS (B) high speed host on the SAMA5D2.

I don't see an example in the softpack for this. To be clear, I want to be able to manipulate a file system on the flash drive inserted into J13; e.g. list directories and files, and create/modify directories and files. I've used FatFS with SD cards but that involves the SDMMC0/1 peripherals which don't apply in this case. Note there is no host PC involved, just my Xplained board manipulating the thumb drive through J13.

Any guidance is appreciated.

Thanks.

 

EDIT: Bare metal, no OS.

C: i = "told you so";

Last Edited: Tue. Jan 21, 2020 - 07:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In case anyone else comes across this thread, what I've found so far is that the softpack library doesn't contain a host implementation.  The Linux distro for the board MAY support the hosting features; I need to build a Linux booting SD card for the dev board and see if I can mount the flash drive.  If successful I can dig into the sources and try to dissect the pertinent code and try to get it running Bare Metal.  Probably won't bother though.

C: i = "told you so";