+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Newbie level 3
    Points: 109, Level: 1

    Join Date
    Jun 2012
    Posts
    4
    Helped
    0 / 0
    Points
    109
    Level
    1

    Can read all MMC card data ????? Mikroc Pro

    Hi all ,
    i have this code with array of 600 the max , i have only 1% of the ram left .. 99% for the ram has been used for array

    this my code ..

    Code: Select all
    Code:
    unsigned int  M_File_Compare(){
    unsigned long  i, size;
    char  file1[]="" ;
     char character;
      Mmc_Fat_Assign("TEST.txt", 0);
      Mmc_Fat_Reset(&size);            // To read file, procedure returns size of file
      for (i = 1; i <= size; i++) {
        Mmc_Fat_Read(&character);
        file1[i] = character ;
        UART1_Write(file1[i]);
      }
    }


    now i have like this in txt file for about 70 lines , it stop in line 62 or 63 depend on the data ,

    the data look like ..

    Code: Select all
    Code:
    1234
    155512
    1234
    2344
    4134
    2525456
    12356
    2432
    2542
    234234
    .
    .
    .
    .
    43151
    please advice where is the problem i use PIC18f45k22.. is it a ram ? please if it is ram how i can over come this issue.
    I need to chick each in the line , for this why i need to store it in
    Code:
    file1[i]
    but if i Write it to UART direct without store it in file1[i] it work fine !! any hint please ..
    regards for all

    •   AltAdvertisment

        
       

  2. #2
    Newbie level 3
    Points: 109, Level: 1

    Join Date
    Jun 2012
    Posts
    4
    Helped
    0 / 0
    Points
    109
    Level
    1

    Re: Can read all MMC card data ????? Mikroc Pro

    any help please ?



--[[ ]]--