at32uc3c2512 handle for eject, MSC usb (mass storage)

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

Hello ;) 

I have a little problem, mass storage working good also with internal flash memory. Now i must know when user did a eject mass storage by windows system, and i don't know how. Do exists some handle from eject action in ASF ?

 

regards  

This topic has a solution.
Last Edited: Fri. Jun 23, 2017 - 11:50 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's not clear from your question: Is the at32uc3c2512 being the USB Host or Device ?

 

Also, are you using ASF? Some other USB stack?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, sorry, it's USB device and i using ASF framework.

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

ok, i found solution, is in 
    case SBC_START_STOP_UNIT:
        udi_msc_sbc_start_stop();
        break;
in file udi.msc.c line 550, 
this is run when we do a click on eject in windows, i did not test in linux.

 

Regars :)