Other Parts Discussed in Thread: UNIFLASH, CC3200,
If I create a new file on the CC3100 serial flash using the following:
retVal = sl_FsOpen((_u8 *)"NewFile",FS_MODE_OPEN_CREATE(4096,_FS_FILE_PUBLIC_WRITE),&Token, &fileHandle);
Then check the allocation using:
SlFsFileInfo_t myFileInfo;
retVal = sl_FsGetInfo((_u8 *)"NewFile", Token, &myFileInfo);
I get myFileInfo.AllocatedLen as 7752.
I believe that this is correctly 440 bytes below the actual value to account for the header, but I was expecting 3656.
If I change the allocation size to 4096-400 I still get 7752 back as the allocated size.
I am actually always getting one extra block allocated, such that a request for 8192 bytes (2 blocks) results in 11848 bytes (3 blocks minus the 400 byte header).
I have ensured, via CCS UNIFLASH that fail safe is not enabled for the file.
I am using CCS v8.3.1, CC3100SDK_1.3.0 and CC3100_CC3200_ServicePack_1.0.1.15-2.14.0.0.
Thanks,
Kevin.