This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Update file in USB Mass Storage Device of LPC1343

Hello,

I run the sample code bundle for LPC1343 in which the USBMSCROM (msc on-chip driver), it works fine. The device is been found in my device manager, but how could i determine that I can update the file inside of the removable disk drive. During the device enumeration the disk drive contain a readme.txt if I modify this file and save the changes do a power-cycle on my board, it seems that the changes I made didn't save. So how can I update this file? If I used a PC application in order to update this file how could this happen?

Thanks.

Parents
  • Hello Jon B.,

    The MSC example uses the LPC1343 RAM for the removable disk. This part of RAM is initially filled with the content of the file DiskImg.c. Please check function main(...) in file memory.c.
    Everytime you power cycle the board the removable disk contains the content of DiskImg.c.
    If you want to have a different content than you must change DiskImg.c.

    Best Regards,
    Martin Guenther

Reply
  • Hello Jon B.,

    The MSC example uses the LPC1343 RAM for the removable disk. This part of RAM is initially filled with the content of the file DiskImg.c. Please check function main(...) in file memory.c.
    Everytime you power cycle the board the removable disk contains the content of DiskImg.c.
    If you want to have a different content than you must change DiskImg.c.

    Best Regards,
    Martin Guenther

Children