Skip to main content
Associate II
November 15, 2023
Solved

USB host on STM32L475 board with FATFS

  • November 15, 2023
  • 1 reply
  • 3144 views

Hi! Hope everyone are doing well! I currently encounter a problem and can't solve it. I want to write some pieces of data into a file in a usb-disk and now the Appli_state is constantly idle even I connect the USB-Disk already.

This is a test demo code from main.c and set up for USB related port. Thanks so much for  your support!

ZZY_0-1700078072221.png

ZZY_0-1700078428443.png

 

This topic has been closed for replies.
Best answer by AScha.3

Question: can you read ? or read things ?

1 reply

AScha.3
Super User
November 15, 2023

Hi, just : what IS working here ?  

i just suggest: dont write, at first try to read (existing file) and proof, its working. 

write or format mkfs just could destroy the device... so dont do this. if mount - open- read - working fine, then you can do some write.

"If you feel a post has answered your question, please click ""Accept as Solution""."
ZZYAuthor
Associate II
November 15, 2023

Hi,

Question is that the state is always idle and can’t do the open, write things 

AScha.3
AScha.3Best answer
Super User
November 15, 2023

Question: can you read ? or read things ?

"If you feel a post has answered your question, please click ""Accept as Solution""."