Skip to main content
Senior
Jan 29, 2025 11:19 AM UTC
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
Jan 31, 2025 2:16 PM UTC

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
Feb 3, 2025 5:10 AM UTC

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
Feb 6, 2025 3:08 AM UTC

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