Forum Discussion

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

multiprocessor boot from epcs.

Hi,

I have read a lot of posts in nios forum,but could not find an answer that fit my question.

So here it goes:

1.my board has an c340q240, epcs16, sdram(data bus = 32bit)

2.my projects has two nios2 named cpu1 and cpu2.cpu1 and cpu2 communicate by a on-chip ram.cpu1 uses the default bootloader ,and cpu2 uses a customed bootloader(.c file) that is placed in cpu1 project,the cpu1 controls the boot, reset of cpu2.

3.in the nios ide flash programmer,i use "program a file into flash memory" to burn the image of cpu2,the image of cpu2 is converted by make_flash_image_script.sh to cpu2_nios.elf.flash.bin,and burned to the 0x00160000 of epcs16.

the problem is that:

1.when power up, the cpu1 can run normally,cpu2 can not boot(cpu2 writes on the on-chip ram,cpu1 reads froms there,and controlls a led.).

2.and most strange is that after power-up(cpu1 run,cpu2 not run),i use the quartus programmer to program fpga ,the cpu2 run too.does the fpga is not config rightly?but befoe program fpga the cpu1 has already run.

sorry for my poor english:) .

thanks!

mxc