Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Cannot Run or Debug NIOS

Hi,

I can't Run or Debug my NIOS system from the NIOS EDS v10.1 (10.0 sp1 didn't work either).

When I try to Run, I get a "Downloading ELF Process Failed" error. It says that verify failed on a range of memory. This memory range maps to the EPCS controller module.

Everything else works fine. I can Program the ELF into the EPCS using the Flash Programmer and then Run (as long the "Download ELF to Selected Target System" option is off). The program executes properly and I get the expected messages printed on the console via the JTAG uart and printf.

The inability to Run (with an ELF download) is annoying but not crtitical. However, I cannot Debug, which is holding up development.

Any ideas?

Thanks,

Tyler

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've had this error when I used a .section of my own creation and forgot to specify a custom linker script, or forgot to update it by adding my section to the area it belongs in (e.g. onchip_ram). It would default to 0 colliding with something else causing verify errors like these.

    Bill
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've seen this error when the Nios II data and instruction masters are not BOTH connected to the instruction memory. I believe nios2-download uses the data master to program instruction memory.