Downloading ELF process failed while using the external memory present in the board

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Downloading ELF process failed while using the external memory present in the board

Hi,

I'm using the BeMicro Kit and I'm using the external 8MB RAM present in the board. I've added the SDRAM controller in the Qsys along with the NIOS II/e processor and it compiled successfully. When I'm compiling the software in the Eclipse it throws an error " Downloading ELF Process Failed". I tried using the NIOS II command shell to download the elf file but it also gives an error " Verify failed between address 0X0 and 0XFFFF ". I have also attached the error message of the NIOS II command shell and the Qsys screenshot. Can anyone please suggest me where am I going wrong ?
Note: I've already set the "Reset Vector and Exception Vector to sram"

Re: Downloading ELF process failed while using the external memory present in the boa

Originally Posted by Galfonz

It looks like your memory isn't working. To confirm this, run a memory test on the external ram. You've covered up the addresses. Make sure they are correct.

Hi Galfonz,

Thanks for your reply. One thing I notice that in QSYS, the external RAM Chip present in the BeMicro board is not being shown. I'm attaching a screenshot of that. Could you please suggest why the RAM Chip is not being shown. Due to this I choose Micron MT48LC4M32B2 7 chip from the list. I think this might also be the reason.

Re: Downloading ELF process failed while using the external memory present in the boa

DRAM controllers are black magic to me. I always start with a demo that has a working memory controller and then add or remove the component(s) I need to. I'd suggest starting with a BeMicro demo project that uses the memory controller and editing it to your liking.

Re: Downloading ELF process failed while using the external memory present in the boa

Originally Posted by Galfonz

DRAM controllers are black magic to me. I always start with a demo that has a working memory controller and then add or remove the component(s) I need to. I'd suggest starting with a BeMicro demo project that uses the memory controller and editing it to your liking.

Hi Galfonz,

I did the same thing like starting with the demo project. The demo project ran without any error but when I edited the components and added different components, the same error is thrown "Verifying failed at external memory address". Could you please help with your knowledge ?

Re: Downloading ELF process failed while using the external memory present in the boa

Have you verified that your FPGA configuration is running. Blink an LED or pulse a GPIO pin. This is just to verify that the FPGA configured properly. You didn't mention if the demo project you started from uses external RAM. If you haven't already, try compiling from source a demo project that uses the external ram and verify that it works. Next, run memory test software on that system to ensure that hardware is working.

Starting from a demo project that you compiled, add and remove components one at a time. Each time run the memory test to verify that memory isn't broken. Save a copy of every step so you can go back if necessary. Keep going until you find a change that breaks external memory. That will give you a starting point for debugging.

Re: Downloading ELF process failed while using the external memory present in the boa

Originally Posted by Galfonz

Have you verified that your FPGA configuration is running. Blink an LED or pulse a GPIO pin. This is just to verify that the FPGA configured properly. You didn't mention if the demo project you started from uses external RAM. If you haven't already, try compiling from source a demo project that uses the external ram and verify that it works. Next, run memory test software on that system to ensure that hardware is working.

Starting from a demo project that you compiled, add and remove components one at a time. Each time run the memory test to verify that memory isn't broken. Save a copy of every step so you can go back if necessary. Keep going until you find a change that breaks external memory. That will give you a starting point for debugging.

Hi Galfonz,

Thanks for your reply. The Demo project uses an external RAM. I took the Demo project template of Qsys and added the extra component of my project into it and removed some unnecessary component from the Demo project template like the temperature sensor IP core. You also mentioned about memory test, could you please let me know how to do this memory test ?