Associate II
July 30, 2023
Question
STM32L476RG FreeRTOS FATFS SDCard - USB MS read failure and buffer I/O error
- July 30, 2023
- 1 reply
- 4254 views
Hi everyone,
I am developing an application using the STM32L476RG MCU with FreeRTOS v2, FATFS and an SD card. I am storing sensor data in a .bin file onto the SD card and I want to enable the USB Mass Storage functionality to get .bin files onto my PC without having to remove the SD card from the device every time.
Following this tutorial ('Using SD Card' section), I added the USB Mass Storage middleware. When I connect the device to my Kubuntu 22.04 workstation the device is recognised, however, the process seems to reach a READ failure and a buffer error (see dump log below).
Does anybody understand/know what I am missing here?
Thanks,
Rob