cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 USB Mass Storage Host with Black Board

Junaid
Associate II

Hello There,

I am implementing USB Mass storage host on STM32f407ve board. The board which I am users is STM32F4 Blackboard Image and schematics attached. Appli_state always remains Idle. I tried removed resister 21 but still not able to create file in USB Drive.

The example source code work fine with STM32F4 Discovery board. Can someone please suggest do I have to do some hardware modification in the board. Pic & schematics is attached.

 while (1)

 {

  /* USER CODE END WHILE */

  MX_USB_HOST_Process();

  /* USER CODE BEGIN 3 */

  switch(Appli_state)

    {

     /**

      * The generated code from STM32CubeMX has two "confusing" application states

      * APPLICATION_START on HOST_USER_CONNECTION and APPLICATION_READY on HOST_USER_CLASS_ACTIVE.

      * Any FatFs commands should be executed after APPLICATION_STATE_READY is reached."

      */

     case APPLICATION_READY:

     // MSC_Application();

      Appli_state = APPLICATION_IDLE;

      break;

     case APPLICATION_DISCONNECT:

     MX_FATFS_Init();

     MX_USB_HOST_Init();

     break;

     case APPLICATION_IDLE:

     default:

      break;

    }

0 REPLIES 0