I am currently debugging my USB MSC host class implementation (on Blackfin development board) that connects to an SD Card reader. I am using TEST UNIT READY and this works fine for detecting media in the card reader, however if I remove the card and reinsert it the SENSE data always shows UNIT_ATTENTION with ASC = 28h (not ready to ready change) and never clears.
If, on startup of my application, no card is present all is OK: I can insert a card and send TEST UNIT READY a few times and the above UNIT_ATTENTION clears. However, once inserted, subsequent re-insertions fail to clear UNIT_ATTENTION.
Does anyone know of a way to clear the UNIT_ATTENTION and get the SENSE data back to Key=00h, ASC = 00h?
Thanks
Martin