Skip to main content
Visitor II
June 7, 2023
Question

How to use USB device and FatFs with HAL library under STM32 U585?

  • June 7, 2023
  • 1 reply
  • 1415 views

I am working on a project that is related to STM32U585. I need to implement USB-HID and MSD device without RTOS using MIddelware library. MSD must be implemented with an SD card that uses SDMMC1 and FatFs. I have tried using examples from the L5 series which are based on Middleware, but I have no success with the FIFO stack that is used for the USB interface and also I have not been able to implement a file system using the FatFs library, from the examples given. Is it possible to provide sample code of the HAL library to implement a USB MSD with an SD card and be able to read and write FatFs files from the microcontroller?

    This topic has been closed for replies.

    1 reply

    ST Employee
    June 22, 2023

    Hello @AArab.2 and welcome to the community,

    Yes, you can implement a FatFs example based on a bare metal project.

    In this post there is a provided project based on bare metal project.

     

    Mohamed Aymen