I'm trying to boot a Nios ii processor from EPCQ flash.
I followed the steps described in the following (page 252 and on):
I connected the reset vector to the EPCQ controller and the exception vector to a on chip memory:
when I try to convert the sof + epcq hex to jic , and use 'absolute addressing':
why is this the address I'm seeing?
when I choose 'relative path' (and insert the appropriate address) I can convert to JIC but the software does not load from flash (HW does).
I think the issue is not with the software app itself since it does work when loading from JTAG.
any ideas what the issue may be?
I think you need to review page 261 the following section of the same document you shared:
Note: • You may select Relative addressing if you would like to set a relative address to the reset vector offset (0x01E00000) you configured earlier. For example, setting a start address of 0x01F00000 for the relative addressing mode changes the start address to 0x3D00000. • There is an issue for Absolute Addressing for EPCQ. Refer to this knowledge database for more details.
plus, please check the available design examples here:
thanks for the answer.
I tried "relative addressing" inserting manually the address. Any address I give gets a '0x90000' offset (instead of the actual address I inserted in the ip parameter as I would expect from the note you posted).
When using 'relative addressing' , the JIC was generated and downloaded, but the SW does not work.
does the size of the On Chip memory influence this?
Also I noticed that in the reference design you posted the "Active serial clock source" (in: device and pin options -> Configuration) is set to 100M, where in the PDF I posted (page 256) this clock should be 25M.
you should put the exact address mentioned in the vectors of NIOS II.
The clock frequency shouldn't affect the address and booting,I see there is a page called boot info, can you remove it?
no, i'm doing it the other way now (copying EPCQ to RAM).
...but i do have some questions regarding the new method:
I have no idea why you put a delay on the NIOS II reset, BTW the main concern is the boot address, you must check the EPCQ flash datasheet to know the sectors inside this flash and know where exactly the correct address you should set to avoid overlay with .sof and give some buffer space to make the boot successful.