Skip to main content
Senior
January 29, 2025
Question

usb data

Hello,

I have configured usb hs as msc, this is with uSD card. 

Drive for card is appearing and add/ copy files to card via drive also works.

but recently when I added files with more than 500 lines (in csv), I see data is shifted, some corruption is happening.

please suggest any settings or steps to avoid this. 

This topic has been closed for replies.

3 replies

ST Technical Moderator
January 31, 2025

Hello @GauravK ,

Did you try and test different SD cards to see if the issue persists.

Try increase the buffer size to reduce the effect of the overhead by the SD card.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
GauravKAuthor
Senior
February 3, 2025

Pl can I know parameter/ setting to be changed. Is it?

MSC_MEDIA_PACKET (Media I/O buffer Size) currently set to 512

GauravKAuthor
Senior
February 6, 2025

Doing ths I got issue of watchdog reset when USB is connected...should MAX_SS be changed in SD card too?