Forum Discussion

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

impossible to boot ep3c25 from epcs16 - reset_vector problem ?

Hi,

I am developing my first niosII design. It works well when I use a volatile programming file (.sof) but I have issues to program the fpga with an external flash.

I use :

- cycloneIII ep3c25

- flash epcs16 (configuration)

- ssram (nios memory)

- quartus 9.1 sp2

- nios software 10.0

- windows7 x64

The hardware image seems to boot (1 led and 1 screen managed by hw are powered) but NOT the nios.

When i try to run the nios manually (run as niosII hw application in eclipse) I have the following error:

"Verifying 02401800 (99%) / Verify failed between address / 0x2401800 and 0x240181F / Leaving target processor paused"

@02401800 is the epcs_controller base address (=reset_vector @) in the nios.

I don't understand the reason of the failure.

Thanks for helping !

I configure the nios in the sopc builder like that:

- cypress ssram controller

- epcs serial flash controller ("automatically select dedicated AS..." enabled")

- cpu nios : reset_vector = epcs_flash_controller // offset 0x0

exception_vector = ssram // offset 0x20

- other modules: spi_control_port, pio, jtag, sys_clk_timer, sysid...

fpga design/quartus:

- flash pins are set to "use as regular IO"

i use the following method to program the epcs16 :# 1) Convert SOF to Flash

sof2flash --input=file.sof --output=hwimage.flash --epcs --verbose# 2) Convert ELF to Flash

elf2flash --input=../testBoot.elf --output=swimage.flash --epcs --after=hwimage.flash --verbose# 3) Concatenate

cp hwimage.flash hw_sw.flash

cat swimage.flash >> hw_sw.flash# 4) Create HexFile

nios2-elf-objcopy -I srec -O ihex hw_sw.flash hw_sw.hex

Then i create a .jic file with quartus convert pgm file:

- flash_loader : ep3c25

- hex_data : hw_sw.hex (I try absolute and relative addressing)

I also try without concatenation : file.sof and sw.hex (relative addressing) to create the .jic file.

With the same sopc file I have tested the epcs16 flash with the project template "memory test". both write and read operations work.

Thanks for helping again !

SG.

18 Replies