Jump to content
43oh

michaelo

Members
  • Content Count

    9
  • Joined

  • Last visited

  1. 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
  2. I tryed with FAT16 and FAT32 , with 1GB and 2GB cards
  3. 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
  4. and how you move to other sector?
  5. 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
  6. 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?
  7. 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!!
  8. 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
×
×
  • Create New...