Hi there,
I've been using the Xilinx University Program Virtex-II Pro development board and I'm having great trouble writing code to interface to the SystemACE compactflash system.
I expect my program (attached below) to open one file, read two bytes, and close it; then open another file for writing, write two bytes to it, and close that.
However, the output shows that main() is starting again, despite there being no looping or recursive calls to induce this. (Some experimentation showed that moving the location of the sysace_fclose() calls changed the point at which main() restarted.)
The problem disappears if I change both file accesses to read mode "r" (and the corresponding sysace_fwrite() calls to sysace_fread()).
Is it simply not possible to read and write from different files within the same program?
The xilfatfs settings in the system.mss file are the following;
BEGIN LIBRARY PARAMETER LIBRARY_NAME = xilfatfs PARAMETER LIBRARY_VER = 1.00.a PARAMETER PROC_INSTANCE = microblaze_0 PARAMETER CONFIG_WRITE = true END
---8