Altera_Forum
Honored Contributor
12 years agoDebugging from memory and reset vector selection
What is the guideline for setting the cpu reset vector when debugging using direct memory load (Eclipse Debug As Nios Hardware)? Does it vary based on specific target hardware / generation?
My standard procedure was to build a SOPC/QSYS system with reset vector pointing to RAM, debug the application, then rebuild the system and application with the reset vector pointing to the serial flash controller (or whatever flash device), and flash it. Not optimal, since you're not debugging the final .sof Then I found that with a new design (Stratix V w/ EPCQ) that I could successfully load memory and debug without changing the reset vector temporily to RAM. (i.e reset vector is always in the final desired location) So now I'm confused about when the sub-optimal debug method is required. For my current project (DE0-Nano w/ Cyclone IV & EPCS) debug works fine if the reset vector points to RAM. With the CPU reset vector set to the EPCS controller I'm getting a ELF verify failure ("Downloading ELF Process failed") in the EPCS controller section. What's the full story, and where is it best documented?