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

Build Outputs

Altera_Forum
Honored Contributor II
1,527 Views

Hello: 

 

I've created a NIOS II IDE Project. 

I build my main.c which contains the simple Hello World porgram with no errors. 

The IDE keeps running and generated the following "error" message. 

 

Kind Description Resource In Folder Location 

Error 49 PM - (SEVERE) elf2flash: Boot copier overlaps data in flash[Oct 25, 2004 2] Prototype line 46 

 

Now my real probelm is that I can't get at the output from the compile of main.c. It has flashed by in the C-Build window and that window keeps getting cleared several times in the build process. 

 

Does anyone know how to get at build output messages?? 

 

George
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
478 Views

I have the same question. Just like this: 

 

Kind Status Priority Description Resource In Folder Location 

Error *** [ext_flash.flash] Error 5 hello_world_1  

Error 32 AM - (??) elf2flash: Error generating Flash file, exiting[Oct 26, 2004 8] hello_world_1 line 10 

Error 32 AM - (??) elf2flash: Error reading boot copier[Oct 26, 2004 8] hello_world_1 line 10 

Error 32 AM - (??) elf2flash: Read error: File not found: /boot_loader_cfi.srec[Oct 26, 2004 8] hello_world_1 line 10 

 

 

I dont understand the "File not found: /boot_loader_cfi.srec", because the file boot_loader_cfi.srec is really there!
0 Kudos
Altera_Forum
Honored Contributor II
478 Views

My original question is how to save the output of the C-Build processes to view later. 

Once I can see the outputs I can start to track problems that I(you) have. 

 

George
0 Kudos
Altera_Forum
Honored Contributor II
478 Views

Hello George, 

 

You can capture the output of the C build process by executing make directly from the command line.  

 

1. Launch Start -> Programs->Altera -> Nios II Development Kit 1.1-> Nios II SDK Shell 

2. Change directory to the Release or Debug folder of your project  

(depending on whether the configuration setting in the Application Project properties page of the Nios II IDE is set to Release or Debug) 

3. make 

 

This can only done after the project has been created and a build attempted in the Nios II IDE, so that files, such as the linker script file, and folders, such as Debug, can be generated by the Nios II IDE.  

 

You can then adjust the properties of the shell by right-click on the window title bar, select properties, then adjust the screen buffer under the layout tab to be large enough to capture the entire output of make. Also, make can be invoked with a verbose-mode flag which will print out the specific commands which are invoked during the build to help you to analyze the problem. 

 

Best regards, 

Stephen
0 Kudos
Altera_Forum
Honored Contributor II
478 Views

Staying within the IDE, you can try this setting: Window->Preferences->C/C++->Build Console and uncheck the option "Always clear C-Build view before building". This should leave the output in the C-build view. In this case you may also want to increase the number of lines in the console (that setting is also on the same preference page). You can then view or copy build output direct from the C-build view without leaving the IDE.

0 Kudos
Altera_Forum
Honored Contributor II
478 Views

 

--- Quote Start ---  

originally posted by nios_xx@Oct 25 2004, 07:18 PM 

i have the same question. just like this: 

 

kind status priority description resource in folder location 

errorâ   *** [ext_flash.flash] error 5 hello_world_1â   

errorâ   32 am - (??) elf2flash: error generating flash file, exiting[oct 26, 2004 8] hello_world_1â  line 10 

errorâ   32 am - (??) elf2flash: error reading boot copier[oct 26, 2004 8] hello_world_1â  line 10 

errorâ   32 am - (??) elf2flash: read error: file not found: /boot_loader_cfi.srec[oct 26, 2004 8] hello_world_1â  line 10 

 

 

i dont understand the "file not found: /boot_loader_cfi.srec", because the file boot_loader_cfi.srec is really there! 

--- Quote End ---  

 

@nios_xx: 

 

I had maybe the same problem as you. After hours of searching http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif I found out that I had a different (light) version of cygwin1.dll on my system (in my case from OpenSSH). After I have deleted it, the building-process from the IDE always aborted with "cygwin1.dll not found". After that I had the reinstall Quartus AND Nios II -> Now it works fine. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif  

 

Thomas 

 

entner electronics (http://www.entner-electronics.com)
0 Kudos
Reply