This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AR166 & Flash File System

The Flash File System is configured for SRAM
Rev.: V1.02 / 11-oct-2004

unsigned long file_size;

void test_1()
{
  FILE *f1;
  FINFO info;
  unsigned int i;

  fformat();
  f1 = fopen ("F1.TXT","a");

  for(i=0;i<100;i++)
  {
    fputc('a', f1);
    fclose(f1);
    f1 = fopen ("F1.TXT","a");
  }
  fclose(f1);
  info.fileID = 0;
  while (ffind ("F1.TXT",&info) == 0)
  {
    file_size=info.size;
  }
}

after execution file_size=50 !!!!

0