Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,003 Views

AS can download nios to epcs ?

Hi : 

I have a question ,Whether can AS model download nios project to EPCS? not .elf + .sof. 

I see use the onchip_mem.hex can do it . 

but I loss , 

my step : 

1, creat SOPC and set "RESET VECTOR " and "EXCEPTION VECTOR" onchip memory2_0,creat sopc sucessful 

2,creat nios and add C build all sucessful。 

3,compiled design the FPGA project, 

4,download the .pof to EPCS16(OVER) 

there is only the logic in the EPCS16. the nios is loss. 

IF creat a ROM with .hex. I don't know how can i do? 

English is not my Mother tongue , I can't explain clearly 

thank you!!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
39 Views

AS当然可以下载Nios II程序。 

试一下: 

1. 使用onchipmem分别例化一个ram和一个rom,大小自己酌情设定。 

2. reset vector映射到onchip_rom,exception vector映射到onchip_ram。 

3. 重现编译sopc builder,qurtus ii。 

4. 下载配置文件sof。 

5. 重现建立软件工厂,或regenerate bsp,目的就是让nios 软件工程重新映射到新的sopc系统。 

6. 使用flash programmer下载nios程序。 

祝你好运。 

 

AS mode can definitely be used to download nios program into epcs. 

Try as follows: 

1. use onchip memory to instantiate ram and rom separately, set the sizes case by case. 

2. map the reset vector to onchip_rom, and the exception map to onchip_ram. 

3. recompile your sopc system, and quartus project. 

4. download the configuration file(sof). 

5. recreate a software project or regenerate bsp file, the aim is to remap the hardware environment into the new sopc system. 

6. use flash programmer to download nios program(elf). 

Best regards!
Altera_Forum
Honored Contributor I
39 Views

在这里能看见中文很亲切, 

我想可能是我表达错了,我的想法是只使用AS,不使用Flash program ,因为在生成SOPC的时候,产生一个RAM/ROM的初始化文件.hex,而且我看到直接使用AS下载,把初始化文件存储到ROM或RAM里面,直接就可以下载了(我也看见有人这么下载过,但是我按照他的方法没有成功),这样把程序交给其他人下载的时候,会方便很多 

Hi, 

I think I can'te express clearly。 

I want to only use AS module download nois and .pof ,not flash program,I find when I buld NIOS2 ,it creat a files(.hex), the files is the RAM and RAM init-files. 

so I think it can be download with ROM to EPCS ,not use FLASH program,
Reply