-
Content Count
9 -
Joined
-
Last visited
About michaelo
-
Rank
Noob Class
-
yes, as i said, everything is working great, i can read the file with success, but when im using the "pf_lseek( ofs)" , with ofs>32768 i got error
-
I tryed with FAT16 and FAT32 , with 1GB and 2GB cards
-
As i understand , each file saved in the sd-card in a lot of blocks. each block is 32 bit size.( as in the picture) so if i will do this: long x=0; while(1) { pf_lseek(X++); pf_read(Line, sizeof(Line), &s1); } i will go over all the file? i tried to do so.. and after i reach the "111111..11" of the first block, i got error
-
and how you move to other sector?
-
Thank you for your help! OFS is DWORD Im only trying to read from a file, each time from diffrent place ( at the same file). size of the file is 2 MB. so each time im setting the ofs , and calling pf_lseek( ofs) . but the ofs is limited from 0 to 32768 . everything working great when 0< ofs <32768 . but when im trying to read more , i got error
-
Hey Bluehash, can you help me with my questions? when using pf_lseek( ofs) , ofs must be from 0 and up to the block size. My questions is what i should do ,to continue read from the next block?
-
After some tests and resources: when using pf_lseek( ofs) , ofs must be from 0 and up to the block size. My questions is what i should do ,to continue read from the next block? Thank you!!
-
Hello, i found a crittical bug, i am trying to read each time a diffrencet part from a file, by using "pf_lseek( ofs)" and then using " pf_read(Line, sizeof(Line), &s1)" . each time i am incriminating the ofs. eveything working great until im trying to read ofs>32768 . after a long recerch i found that this number means 32768/512 = 64 with means the "Allocation unit size" of the sdcard. when i tried to change the "Allocation unit size" to 64k. i got that the boundery is 65536/512 =128 , so now i could read much more.. but still with limit. i think that there is a