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++
12746 Discussions

NIOS2 ide flash programmer bug ?

Altera_Forum
Honored Contributor II
1,223 Views

Hello, 

 

Does anyone have experimented this ? 

I have created a target board for my custom board with mk_taget_board. I have a Quartus project and a software that work fine. I can use the command line "nios2-flash-programmer" to program my EPCS or my flash, but when I try to use the Nios2 IDE Flash Programmer, I cannot program the flash (button is greyed out), and I get the message "There is a problem with the target board. Check the target board selection in SOPC Builder for this system". In my design, I have correctly chosen as target board the one I have created with mk_custom_board, I don't see what other configuration I can set. 

 

The only way I found to have this working is to open the quartus project and the associated SOPC Builder (for my design project, not for the target board project). When it is open, the button in the Flash Programmer is available and I don't get any error message. 

 

Is this a bug or a misuse from me ? 

 

Thanks 

 

pod
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
469 Views

cetic, 

 

you're not alone. In the past there have been several topics regarding this problem. You have to start SOPC builder everytime you will use 'Flash-Programmer'. To avoid this, open SDK-Shell, change to the directory of your EPCS firmware (Debug or Release) and call the script file, which was created by Flash-Programmer, directly. This scriptfile has the extension .sh and has to be called with the prefix ./ (Unix style). 

 

Mike
0 Kudos
Altera_Forum
Honored Contributor II
469 Views

Thanks for your help ! 

 

pod
0 Kudos
Altera_Forum
Honored Contributor II
469 Views

Where (in which directory) is your target board component located? Did you place it in the <nios2_rootdir>/components directory? Alternately, you could place it in a different directory and then change your SOPC_BUILDER_PATH to point to it. 

 

From the behaviour you&#39;re describing, it sounds like your target board component is not in one of the standard component search locations. 

 

Cheers, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
469 Views

Hi slacker, 

 

well, my target board is in the default directory, I mean in <my_quartus_project_dir>/target_board/. I never placed it in the components directory, I followed the Flash Programmer Guide, and ran mk_target_board in my quartus project directory. I will try to move it to the components directory, but in this case, will the target board be visible for my quartus project ? 

 

Thanks 

 

pod
0 Kudos
Altera_Forum
Honored Contributor II
469 Views

....yes, it apparently is. And it works now. So I just moved my target board quartus project from my quartus project to the components dir and I don&#39;t get the error message from the flash programmer 

 

thanks slacker 

 

pod
0 Kudos
Reply