TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136220 times)
  2. FAT32 Library (69487 times)
  3. Network Ethernet Library (55706 times)
  4. USB Device Library (45992 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40781 times)
  7. GSM click (28788 times)
  8. PID Library (26330 times)
  9. mikroSDK (26053 times)
  10. microSD click (25140 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

USB MSD Host Library

Rating:

5

Author: dany

Last Updated: 2020-06-08

Package Version: 2.0.0.0

Category: USB

Downloaded: 4198 times

Not followed.

License: MIT license  

Library for making an USB host capable of reading and writing sectors from/to USB memory sticks (&quot;USB drives&quot; or &quot;pen drives&quot;).To read/write actual files from/to the USB memory stick you need still e.g. a Fat16 or Fat32 library (see example).

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "USB MSD Host Library" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "USB MSD Host Library" changes.

Do you want to report abuse regarding "USB MSD Host Library".

  • Information
  • Comments (5)

Library Blog

USB MSD Host library, only for PIC24 for now.

Library for making an USB host capable of reading and writing sectors from/to USB memory sticks (USB drives).
To read/write actual files from/to the USB memory stick you still need e.g. a Fat16 or Fat32 library. The lib software assumes the USB memory stick is powered from an external source.

Tested with 2 brands of USB memory sticks and 1 card reader brand. 

* Documentation

* mE Driver: The hardware driver for the Fat32 library of mikroElektronika. It can also still be used for Sd/mmc cards, only the compiler directives at the top have to be correctly chosen.

* mE Example: An example of how to use the USB MSD host library together with the Fat32 Library of mikroElektronika.


Have fun!

-------------------------------------------------------------------------------------------------------------------------------------------------
2012-09-29: Corrected an error in routine "USB_MSD_Device_Capacity" (not used by the library itself).

------------------------------------------------------------------------------------------------------------------------------------------------

Added an example of how to use the USB MSD host library together with the Fat32 Library of mikroElektronika: Example.

The example is the same as delivered with the Fat32 library of mE, except for USB stick in stead of SDMMC.

-------------------------------------------------------------------------------------------------------------------------------------------------
2012-11-01: Added the "__Lib_Fat32_Driver.mpas", adapted for usage with the USB MSD Host library, to the example in the package that needs it (USB_STICK_Demo). This driver is needed by the Fat32 Library of mE.

----------------------------------------------------------------------------------------------------------------------------------------

2014-03-13: The mikroBasic files and zip files have been updated. All mB sources are present now (not tested if compilable though).

-------------------------------------------------------------------------------------------------------------------------------------

2016-02-10: Both libraries (HID and MSD) can handle now devices wity an Endpoint0 size < 64.

-------------------------------------------------------------------------------------------------------------------------------------

2016-02-13: simplified the enumeration process

------------------------------------------------------------------------------------------------------------------------------------
2017-01-04: New, extended version of the library: access to the string descriptors has been added.

---------------------------------------------------------------------------------------------------------------------------
2017-02-16: Removed the (erroneous) setting for "Enable the VBUS generation circuit (U1OTGCON<3> = 1)".

ALSO FROM THIS AUTHOR

I2c non blocking

10

Replacement routines for I2c1_Rd and I2c1_Wr but here with timeout, so no blocking any more when a device one tries to access is not present. The mE I2c library is still needed for the remaining I2c routines. Implemented also the code for controllers with 2 I2c's (e.g. P18F27K40).

[Learn More]

Tool: Project configuration in text format

10

Tool that shows the project's configuration words content (in a readable format), the MCU type and the MCU clock frequency. This permits to add (part of) the configuration settings in a comment box in your project.<br> For <b>mP</b>, <b>mC</b> and <b>mB</b> for <b>PIC</b>, <b>dsPIC</b> and <b>PIC32</b>. IDE based version (not stand alone).

[Learn More]

OW_Utilities

5

This library provides the basic one-wire search ROM and search ALARM routines, e.g. for the DS1820, the DS18S20 and the DS18B20.

[Learn More]