cancel
Showing results for 
Search instead for 
Did you mean: 

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

AArab.2
Associate

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?

1 REPLY 1
Mohamed Aymen HZAMI
ST Employee

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