Merry Christmas!

Misc., MyUSB Library, Projects Add comments

Well, twenty four hours premature. But still - if you visit here tomorrow, you need to heap-sort your priorities!

I’m now convinced that the Mass Storage Host code is correct, with the addition of a new function to wait while the device is busy. It seems the correct method is a spinloop, looking for NAK signals on the BULK IN data pipe. Calling the new function before any read or write operations now causes them to work just fine, rather than the code locking up (while waiting for the data response from the device that won’t come) after more than one operation is executed within the time it takes the device to get ready for the next command.

Today and late last night I coded up something which I dreamed up while riding in the car - an auto-defragmenting, dynamic memory block allocation library. It’s operation is quite simple from an algorithmic standpoint, but the end result is a nice dynamic memory allocator with no fears of memory fragmentation after a long period of time. I’ve posted the initial version of the code over in a thread at AVRFreaks.

Happy holidays!

Leave a Reply

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