cancel
Showing results for 
Search instead for 
Did you mean: 

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

blin.0
Associate II

 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;

     }

0 REPLIES 0