Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

dummy_file error

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.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.