Forum Discussion
1) about the programming ELF question, I have asked many questions. please read previous post. For example, I have asked what those parameters means when I convert elf to hex file. I asked the question when I convert Programming Files to hex.
2) The issue I am facing when I debug the C code in eclipse is outwardly related with Eclipse, but it is inwardly related with the hex file and offset address when I generated hex file.
in addition, I don't know which region you are in, so I wait for your reply and post new questions immediately. However, you usually answer the new posted questions on the second day. I don't know why the answer is so slow.
- Archer_Altera6 months ago
Occasional Contributor
Hi Zhiqiang,
Eclipse tool doesn't use the hex file you manually create to download into onchip memory. The tool uses its own toolchain to complete the process automatically.
If you want to debug your design first, I suggest you to change your design in Qsys by set reset vector and exception vector to onchip memory, then select onchip memory as memory space for all sections when you create BSP project in eclipse tool. Then try to execute Run as command in menu of eclipse tool and see what message is printed during the process. A simple hello world software project is good enough to verify on hardware. After this step is working, you can try to change reset vector to EPCS controller in Qsys and program design into flash and see whether the design is working also.
I see that the downloading fail address is 0x01000000, it is EPCS flash address range in your design if it is the fact. This address space is indirect access space, it is reasonable to see that error. Nios II processor runs boot coper code to copy binary file from epcs flash to other memory and then run from there. This is described in document :1.5.5. Nios II Processor Application Copied from EPCS Flash to RAM...