USB Enumeration and Mass Storage Device firmware code for the PIC18f4550 microcontrollers.
good idea
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 © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: