08-24-2008 09:48 PM
08-27-2008 08:17 AM
I am not sure exactly why your specific sw application is running out of memory. However, there are a few example designs that you can use to get an idea of how the drivers should be setup (maybe you have already seen them, but if not, they are listed below).
For the ML506 board reference designs click on the ml506_bsb_std_ip.zip link at - http://www.xilinx.com/products/boards/ml506/bsb.htm. Once you have downloaded and unzipped this file, you should be able to navigate to the ml506_std_ip_pcores\sw\standalone\testfatfs\src directory. The source code in this example should be a good starting point for setting up your specific sw application.
Even though the above targets the ml506 board, you should be able to get a good idea of how Xilinx has run some small tests using the xilfatfs drivers.
08-27-2008 10:46 AM
Thanks a lot.
The code is pretty much close to what I'm doing. The main difference is that I'm repeating the same process a lot of times.
Based on the opinions on some forums, I think that it is a stack size problem, which is consistent with the fact that increasing the stack size, allows to manage more files (but hanging anyway later). But, if I'm managing just one file open at time, my educated guess is that the sysace_fclose() command it's not freeing the memory used for that file.
I'm still trying to make it works (same problem), any sugestion would be very helpful and appreciated.
Cheers