Skip to main content
Visitor II
May 3, 2020
Question

STM32H743ZI2 USB Mass storage newbie question

  • May 3, 2020
  • 3 replies
  • 1501 views

Hello,

I'm attempting to hook a USB flash drive to the STM32H743ZI2 EV board and access it using FatFs from my code.

  1. Is this possible ?
  2. Are there any examples for this specific board ? couldn't see any under the STM32CubeH7 repository.
  3. If so, a project that show how to configure this using the device configuration tool would be appreciated.

Thanks,

Eitan.

    This topic has been closed for replies.

    3 replies

    Super User
    May 4, 2020

    There is a NUCLEO-H743ZI2 board and an STM32H743I-EVAL2 board. Both of these have examples in the STM32CubeH7 repo. The latter has both FatFS and USB device examples.

    You're saying you have a different board? I don't see a "STM32H743ZI2 EV" board available.

    EMichAuthor
    Visitor II
    May 4, 2020

    I'm talking about this one :

    https://os.mbed.com/platforms/ST-Nucleo-H743ZI2/

    I don't see any  \H743ZI2 subdirectory under \Projects.

    The closest thing \NUCLEO-H743ZI does not include samples for USB host.

    Eitan

    Super User
    May 4, 2020

    NUCLEO-H743ZI and NUCLEO-H743ZI2 should be equivalent as far as examples go.

    No USB host example there, true. The closest is probably

    • \STM32Cube_FW_H7_V1.7.0\Projects\STM32H743I-EVAL\Applications\USB_Host\MSC_Standalone

    Same chip, probably same USB pinout, should be close to what you're looking for.

    EMichAuthor
    Visitor II
    May 4, 2020

    Didn't work.

    I've opened \STM32H743I-EVAL\Applications\USB_Host\MSC_Standalone

    Picked 'STM32H743I-EVAL_USBH-FS',

    Had to remove lots of code, for ex. LCD, some other BSP code (IO expander over I2C? ),

    Finally I got this to run more or less.

    Plugged an OTG cable to the back of the board along with a FAT32 formatted flash drive.

    The code does not switch states within USBH_Process() whenever I'm inserting \ removing the flash drive

    What am I missing ?