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

dummy_file error

Altera_Forum
Honored Contributor II
1,393 Views

When compiling a simple hello_world programm we get the following error: 

 

================ 

make -s all  

Compiling hello_world.c... 

../hello_world.c: In function `main': 

../hello_world.c:23: warning: char format, pointer arg (arg 3) 

../hello_world.c:24: warning: passing arg 1 of `strlen' from incompatible pointer type 

Linking serial_terminal.elf... 

Info: (serial_terminal.elf) 87 KBytes program size (code + initialized data). 

Info: 16296 KBytes free for stack + heap. 

Creating generated_app.sh... 

Post-processing to create ext_flash.flash 

Syntax error: "(" unexpected 

make: *** [C:/USERS/standard/std_2s60ES_sim/dummy_file] Error 2 

Build completed 

================ 

 

We saw that the dummy file exist and is empty. We first did managed to run the hello world program (it is the standard example) but suddenly it isn't working anymore. 

Uploading the standard NIOS CPU with Quartus works fine. 

 

Can someone tell us what is going on?? 

 

Thanx in advance for your help. 

Jos & Michel. 

 

Software: Quartus 4.2- service pack 1 and nios II 1.01 

Hardware: A stratix II development board.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
533 Views

Hi, 

 

I also had this problem when I upgraded Quartus to version 4.2 

Apparently, SOPC Builder 4.2 is no longer compatible with Nios1.01 

 

So you have to upgrade to Nios1.1, or downgrade to Quartus 4.1, or compile as this : 

 

Compile your program, delete the dummy_file and create a new empty file named dummy_file (or make a touch dummy_file) and re-launch compilation. 

 

It worked for me, but the easiest is to get Nios1.1 (available on this forum) 

 

Yours, 

 

cetic
0 Kudos
Altera_Forum
Honored Contributor II
533 Views

Thank you for your suggestion.  

 

Yesterday we comment out three lines in the file *syslib/debug/systemdescription/generated_app.mk that had something to do with the dummy_file, and we finally get the code working.  

But we need to do it everytime we compile again. 

 

We shall update to nios 1.1 and we hope this will fix the problem, 

 

Thanks again, 

 

Jos & Michel.
0 Kudos
Reply