Hello sstrell, Kelly,
Further questions from my side.
"1) You're getting the programming bitstream and processor code mixed up. You must have a .pof or something in some non-volatile memory to program the device itself and then you need the Nios processor code stored somewhere else, pointed to by the reset vector, to start running that code when the processing starts (or is reset)."
Q1) so let's say I have a .pof in some non-volatile memory, and the Nios CPU system design have chosen the reset vector memory as flash, then it's expected that the Nios processor code should be stored in the flash memory pointed by the reset vector offset address. Is my statement here, correct?
"2) You're forgetting the CE signal. And the 0x10000000 is the base address in the system design, not a physical address on the flash. That goes back to the offset value to access the physical location on the flash."
Q2) The base address in the qsys does not relate to the physical address on the flash, but the offset value relates to the actual physical address of the flash. Is this correct?. so, in my case, the expectation is there should be Nios processor code starting at 0x08b00000. Is this statement correct?
"Your code is running directly from Eclipse (debug mode) over the JTAG connection. Eventually, you have to put the code in flash (or wherever specified by the reset vector)."
Q3) In this scenario I had actually mentioned the reset vector memory as flash. So, in the debug mode over JTAG, where was my Nios code stored?
Q4) In the same scenario as Q3, once I change the offset address in the qsys for reset vector ( still retained the reset vector memory as flash), and then run from eclipse in debug mode, I saw that the system was running fine and I was able to ping successfully whenever I set the reset vector address in specific range, whereas in certain other reset vector address range, the eclipse debug mode could run only until auto negotiation, and ping could not proceed. So, it kind of got stuck. I could not understand this discrepancy and behavior. Any thoughts on this?