zenpar
Newbie level 3
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
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
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
but if i Write it to UART direct without store it in file1 it work fine !! any hint please ..
regards for 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]
regards for all