Skip to main content
blin.0
Associate
March 22, 2019
Question

USB mass storage Download DATA from NADN FLASH to the USB flash drive

  • March 22, 2019
  • 0 replies
  • 484 views

 Hello everyone

I use STM32F429ZIT6 to make USB mass storage.

Download DATA from NADN FLASH to the USB flash drive.

I am currently experiencing a problem. When I am still transferring, I unplug the USB flash drive.

The MCU only has TIME execution, the main program does not work, DEBUG MODE finds that Appli_state is stuck in APPLICATION_DISCONNECT. I think the MCU knows that the USB flash drive is unplugged, but the main program does not work. After the power is turned off, the MCU does not operate at all.

Re-download CODE, the MCU will work normally.

Switch(Appli_state)

     {

     Case APPLICATION_READY:

       MSC_Application();

       Appli_state = APPLICATION_START;

       Break;

     Case APPLICATION_START:

       F_mount(NULL, (TCHAR const*)"", 0);

       Break;

     Case APPLICATION_DISCONNECT:

       Appli_state = APPLICATION_IDLE;

Break;

     Default:

       Break;

     }

This topic has been closed for replies.