Problem with reading larger file from SD card

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JaVa_282241
Level 2
Level 2
10 replies posted 5 questions asked 5 replies posted

I have problem with reading from file large than 64k.

   

I have file named v4_32k.wav on SD, size of file is 202344B (31668HEX). When i am reading from file using function FS_Read, it is possible to read only 1667HEX bytes. EOF is on 1668HEX. It seems  as file pointer was defined as only 16bit number.  I tried to use compiller file for FAT16 and FAT32.

   

Can I get some help on this issue?

   

Regards,

   

Jan

0 Likes
2 Replies
Anonymous
Not applicable

 Hello Jan,

   

 

   

I want to know more about this issue. How much is the data buffer size that you are trying to read by FS_FRead?

   

 

   

Can you send me the test project in which you facing this issue? Mention processor type and library file that you are using while facing above issue.

   

 

   

Thanks,

   

RJEN

0 Likes
lock attach
Attachments are accessible only for community members.
JaVa_282241
Level 2
Level 2
10 replies posted 5 questions asked 5 replies posted

Hello RJEN,

   

I  tried to use both FS_FRead and FS_Read function. Testing project you could find in atachement.

   

Thanks,

   

Jan

   

 

   

 

   
0 Likes