Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

Porting Nios II Flash Programmer

Altera_Forum
Honored Contributor II
1,144 Views

Hello all, 

I am currently working on porting the nios II flash programmer to a custom board. My board is basically the same as the 1s10 dev board, but I have repinned the nios II standard build to work with a 1s25. I have the EPM on my board as well. Given that, I am currently trying to get my custom board into the target drop down list in SOPC builder. I have followed chapter 2 "Porting Nios II Flash Programmer to custom boards", and it appears as though I have been successful (with 75 warnings), but I was trying to verify that it is indeed correct by looking at the altera_nios_dev_board_stratix_1s10 component in the kits directory. However, I can't generate a system from the altera_nios_dev_board_stratix_1s10 component. 

I've tried to compile it to no avail. 

 

Here are the questions I'm trying to answer by comparing the kit component to my_target. 

 

Do the module names in sopc builder for the board need to be identical to the module names I have in my_project. (i.e. The programmer guide uses cfi_flash_0 and my_project uses ext_flash as a module name)? 

 

Do the cpu settings in the flash programmer need to match the cpu settings I have in my_project (i.e. my_projecy is using NIOS II/s the flash programmer project defaults to NIOS II/e) ? 

 

If I want to change my system clock frequency, do I need to start all over again with the SDK Shell and repeat all of the steps in Chapter2? 

 

In the flash programmer project, I ended up with an extra pin named "E_en_to_cpu". Where did it come from (because it wasn't there the first time I compliled) and what should I do with it? 

 

 

Thanks in advance for any help you can provide. 

Mike
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
424 Views

AN346.pdf can help you

0 Kudos
Altera_Forum
Honored Contributor II
424 Views

hello mtmurphy, 

 

Can your system run&debug program? To download software&hardware configuration with flash programmer , you should make a target board according AN346 step bysetp. Your meaning you can't generate target board, isn't it? and can you post the error information?
0 Kudos
Reply