USB Enumeration and Mass Storage Device firmware code for the PIC18f4550 microcontrollers.
Be the first to post a text review of PIC18F4550 USB/MSD. Rate and review a project by clicking thumbs up or thumbs down in the right column.
I made the following changes: msd_data.h - In the rom CAPACITY capacity data structure, I changed the block size to 512 bytes, and the last block to 48. msd.h - In the read and write functions, I changed lines 236 and 285 to: "mem_location = ((msd_buffer._CB[5] * 512) + 0x1000);". This will make the address 0x1000 in flash memory the start of the disk seen by the operating system. msd_buffer._CB[5] is the offset in blocks from the beginning of the disk.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?