Forum Discussion

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

gmon.out not compiling correctly

Hi,

I am trying to run the checksum example code from altera for profiling. however after the code is run I am not able top open my gmon.out file. It gives me the error :nios2-elf-gprof: command not found EXIT CODE-127. I followed all the steps the nios profiling pdf. I have a system timer on my hardware and grop-enable ticket on the BSP.

What can be wrong.

Thanks fro the help.

Saru

3 Replies

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

    You need to run the nios2-elf-gprof tool from the nios2 command shell. In windows it's Start->Altera <version> -> Nios II EDS <version> -> Nios II <version> Command Shell

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

    Hey Galfonz,

    Although they code for checksum(example code given by altera) is running fine with gmon.out being generated but when I try to run it on my code it doesn't work. It doesn't even enter main(). Any idea why this could be ?

    Thanks

    Saru