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

CortexM1 processor

I get the following error when I do build in microvision. The project uses a CortexM1 processor on Altera Cycloneiii FPGA.

The Error:
.\obj\ITCM.axf: Error: L6200E: Symbol ferror multiply defined (by iostubs.o and retarget.o).

The code causing the error:
/* fopen test prg*/

void tst_fopen (void) {
   FILE *fin;

   fin = fopen ("Test.txt","r");

   if (fin == NULL) {
      printf ("File not found!\n");
   }
   else {
      fclose (fin);
   }

}


Iam a Hardware Enginner, not much in the C programming., I was wondering if any one could help me on this issue.

Thanks,
Veeraraghavan.R

Parents
  • In general using the File System on Cortex-M1 is not possible. It needs a properly configured low level interface and a hardware. This is not available in FPGA.

    Use the microlib and stay away from the file system on CM1. If you would still like to use it, then you will have to implement it all, the FPGA logic and the low layer File System on your own.

    Franc

Reply
  • In general using the File System on Cortex-M1 is not possible. It needs a properly configured low level interface and a hardware. This is not available in FPGA.

    Use the microlib and stay away from the file system on CM1. If you would still like to use it, then you will have to implement it all, the FPGA logic and the low layer File System on your own.

    Franc

Children