02-13-2012 08:04 AM
It appears that the FPGA and s/w download is working correctly as my header xil_printf messages are produced. However I then get the message "incorrect configuration: xps_ethernetlite drivers not present?".
I have traced the reason for the message to a malloc failing (returning null in the xpqueue.c Xilinx driver module) when trying to allocate a 524 byte data structure. This is the only malloc call in the code. My stack and heap are each set to 0x40000 and the application is executed in SDRAM (on a ML605 dev board).
I commented out the malloc call and returned a fixed address in free SDRAM space. It then no longer produced the error message but failed further on in the application. So it appears that the SDRAM may not be configured correctly or pre-initialized variables (as used by malloc) are being corrupted before code execution.
So I guess the question is what does SystemACE do differently to when downloading and executing the software from SDK using XMD?
Any help would be much appreciated.
02-14-2012 02:03 AM - edited 02-14-2012 02:04 AM
Is the software you download using SystemACE compiled using "debug" or "release"?
02-14-2012 02:18 AM
It is compiled using release. I have tried both release and debug build settings and the same problem results. However it never fails when running from SDK using XMD.