Hi,
I have a firmware code that works perfectly in the EZUSB dev kit consisting of the FX2LP base board/NX2LP-Flex daughterboard. However, when I try to download this firmware into the standalone NX2LP-Flex board, the Programming Utility gives me the error "Unable to parse the configuration file". I tried reducing the code space until a point where I'm able to download the firmware.
Looking at my code, I do not think I am running out of space though. According to the reference design notes, the chip has 16K memory shared between xdata/code. 0x0000-0x04FF is reserved for NAND boot loader, 0x0500-0x1FFF is the default firmware, 0x2000-0x37FF is available user code area, and 0x3800-0x3FFF is for the gLog2Phy table, which is a 2K xdata array.
Since my code uses additional xdata and code, I made the following changes in Keil/uVision3.
I brought the xdata start address from 0x3800 down to 0x3700, and increased the size from 0x800 to 0x900(for my additional xdata arrays). I also increased the size of the code memory from 0x2000 to 0x3200, keeping the start address of 0x500. Hence code space runs from 0x500 to 0x36FF, and xdata space runs from 0x3700 to 0x3FFF, so this fills up the entire 16K memory. Perfect, right?
Well apparently not, since I'm not even able to increase the code space size much beyond 0x2200 before I encounter the problem.
I tried looking at the .MAP files but didn't see anything out of the ordinary, but that's a huge file so admittedly I didn't check everything.
Does anyone know what might be wrong?
Thanks!