problem with FAT32 alloc 16KB sector segment in a new file

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi,

I just tried with the FAT32 file system on a 16GB microSDHC card, and my code tries to alloc 16384B in a newly opened file, but fat_write_file() function always gets fs_g_seg.u32_size_or_pos smaller than 32(16384/512).

Is this the limit of the FAT32 code in the framework?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ok, just found out that fs_g_seg.u32_size_or_pos do return 32. So fat_write_file() function was correct.

The problem is that my multiple block write function will stuck at 31st block write. very strange...