Mass Storage Device recognized by Windows 7 - but no drive icon ... sad face

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

I know this topic has been discussed at great length - but I just can't remember the details, or where I saw it...my apologies.  The problem is classic, everything seems to work fine, Windows announces the driver is installed, Device Mangler shows it as a drive, but alas, no little icon thingy in explorer.  I am running on an ATXMega256A3U and have added all the necessary ASF Wizard services and components to an existing project (it was actually quite easy to keep the namespaces apart).  My media is actually an FM25V10 (128k x 8 FRAM clocking at 6MHz), and I can see IN and OUT data to the endpoints*.  I have maintained the Atmel vendor and product ID, but I noticed that the Windows usbstor.inf makes no mention of Atmel (would Windows Update help?).  I was hoping to format the drive through the explorer and then go back to drinking heavily.  Ugh, so close... 

 

* I do see a few stalls on the analyzer, and a few MSC endpoint halts, not sure if that's normal, hopefully not some unprocessed SCSI command...

 

Thanks to all of you out there in the Freakdom!

 

 

This topic has a solution.

Field the chicken, ignore the ball.

Last Edited: Wed. Jul 5, 2017 - 09:54 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

On Windows 7, take a look at the Disk Management utility.

(It can be found at:  Control Panel -> System and Security page, under Administrative Tools, Create and Format Hard Drive Partitions.)

 

This will give you a graphic showing what drives are found, how they are formatted, and size.

 

 

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

Hey Chuck, thank you very much.  Your info enabled me to discover Windows(7) could not initialize the drive due to an error I made (I forgot to enable ACCESS_USB and ACCESS_MEM_TO_RAM).  Once I fixed that, it that Windows may have automatically initialized the drive, but is reporting the capacity as 0.  My media is ~98k (128k-32k, 192 sectors of 512 bytes), and I can break on the call to see it actually getting reported.  Do you happen to know if that is enough?  Thanks again. 

Field the chicken, ignore the ball.

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

Sorry, I've never worked with developing a mass storage device, so I can't help you there.

 

Have you tried to partition and format it?

 

 

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

Yeah, this is my first time too.  Windows doesn't display the drive in the normal folder views, only in the Disk Management view, but no option to format.  I've logged the whole SCSI conversation between Windows and the device.  The ASF stack makes the device stall (not answer) the SCSI "read formatted capacity" commands, and stalls again after outputting a reply to every 6-byte sense command (request size not equal to answer size),  but Windows seems happy enough to initialize the drive anyway by writing a master boot record into sector 0.  It's just not happy enough to bless me with a drive icon, so I can't do much else yet.  Maybe there is another tool, or maybe I can do it through the ASF FatFs (ChaN Fs).  I don't plan on using the FRAM in the final product, but since I had this board laying around I thought I would give it a go.  Now its personal.

Field the chicken, ignore the ball.

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

Take a look at LUFA (Lightweight USB Framework for AVRs) (Link) by Dean Camera (abcminiuser here at avrfreaks) .

The package includes an example project - Temperature Datalogger - which logs data to the on-board Dataflash's FAT partition.

When connected to a PC via USB, the datalogger will appear as a standard USB Mass Storage  device with a single text file.

 

 

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

I'm not sure what you mean by a drive icon.

 

File manager shows partitions that have drive letters assigned.  To create partitions and assign drive letters (actually partition letters) you use Disk Management.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Sorry, in all the excitement, I never updated the post with the particular solution.  Many apologies, and one year later... the answer was that I was stubbing the, <sd_mmc_removal_0()> function and returning FALSE.  I was over-thinking it.  This needs to always be TRUE.  Once fixed, Windows formatted it perfectly and displayed the "Removable" drive in Explorer (not an icon, sorry again).  Anyhow, that was done with an FM25V10 128k x 8 part.  I have since moved on to an SD card with the ChaN FatFS - everything works perfectly.  Oh yeah, I did get burned for a day by not providing the additional 8 CLK cycles after dropping /CS, but that was simple to figure out.

Field the chicken, ignore the ball.