USB mass storage READ10 issue

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I'm currently developing my own USB stack to use an ATXMEGA64A4U as an external SD card reader, so a Mass Storage device.

 

Before everyone will reply me to look at LUFA or ASF, I don't want, I want to understand myself the mechanism.

 

So at the moment I have the enumeration done, and the Host is starting communicating to the Device using the SBC2/3 standard commands.

The Device is able to reply, but I have two issues I'm not able to fix yet, even if I have access to a USB analyzer.

 

The first issue, seen in the USB Stick.png file, is the Device is not replying to the second READ 10 command, it is Nacking all IN requests.

The second issue is about time, the first READ 10 OUT packet took about 1.7sec, because of NACK as well.

 

My code is attached to this thread, I wrote it taking example on what I was able to found around.

 

Can anyone help me?

 

Thanks,

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Reinventing square wheels can be quite a journey, I would begin by getting a copy of known good round wheels (lufa), get it working, then I would have some thing to compare/contrast with. 

Enjoy the ride!

 

Jim

PS:YMMV!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I'm back and no progress on my side, even after looking to plenty of example using LUFA or ASF.

I'm not trying to "reinvent" the wheel, I'm trying to understand how it is working.

 

So still looking for some help, if possible

 

Thanks,