Early Morning

LUFA (Formerly MyUSB) Library, Projects Add comments

It’s now 2AM, and I’m wrecked - off to bed. I’ve just been involved in a marathon coding and debugging session on the Mass Storage driver, with promising results.

With the latest code, Windows shows up a new external removable disk, unformatted. Formatting the disk doesn’t work yet, giving a generic “can’t format the disk” error.

It seems Atmel’s implementation of the MODE SENSE command isn’t superfluous, as it first seemed. Without the command Windows won’t even *try* to format the disk. I’ve written my own implementation which allows the format process to start (but fail), although the ALL PAGES sense page command causes the host to NAK the data. Lots more debugging yet to do.

Once the disk is formatted correctly, the existing read/write routines *should* work. Time will tell, but for now I’m getting some sleep.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in