Close

1. USBMem

A project log for USB MicroSD card reader

Reads the data from MicroSD card interfaced to LPC2148 and sends via USB.

rutwik-narendra-jainRutwik Narendra Jain 11/26/2018 at 07:170 Comments

The first attempt made was to reproduce a demo USB-based mass storage program for the Keil
MCB2140 Board using the Philips LPC2148 Microcontroller. Given that UM10139 was being used
and not the MCB2140 board, only the startup file needed to be changed and the main program
written for the MCB board would still be compatible with that for UM10139.

OBJECTIVE

The USB Memory should be automatically recognized by the host PC running Windows which will load a generic Mass Storage driver, such that the microcontroller board acts as a USB Mass Storage Device (MSD) and the PC acts as the USB Host. The on-chip RAM is to function as MSD.

DETAILS

memory.c is the main file which starts the Mass Storage Device. It uses the following files:
Startup.s: CPU startup file for the NXP LPC2148 device.
usbhw.c: USB hardware layer for NXP LPC2148.
usbcore.c: USB core module that implements the basic USB communication layer.
usbdesc.c: USB device description.
usbuser.c: HID custom module.
mscuser.c: Mass Storage Class implementation module.
The figure below shows memory.c in the Keil window. 

CONCLUSION

Due to issues of compatibility with the UM10139 board, the code did not successfully compile.
Attention was then shifted to the LPC2148 USB Bootloader

Discussions