I am not sure if the information about 23.5. being the "real" deadline is correct, but if there really is still time, I would like to get the profiler to work.
The first problem I have is that both of the tutorials and other resources I found reference a "System Library" section in the project properties in Eclipse. I am not sure if I have an older or newer version of Eclipse, but I was not able to find this section anywhere.
Instead, I followed this guide
https://www.intel.com/content/dam/altera-www/global/en_US/uploads/3/36/Profiling_Nios_II_Systems_%281%29.pdf
which explains how to do the same thing via command line. I set hal.enable_gprof and hal.enable_exit to true in the settings.bsp file and ran
./create-this-bsp
./create-this-app
respectively. After running make, it looks like the library is being linked, but I am really not sure. In any case, the gmon.out file is not being created. According to this resource
http://cse.unl.edu/~witty/class/csce351/assignment/NIOS/tutorial/ug_nios2_ide_help.pdf
the program must terminate "gracefully" with a call to exit() in order for gmon.out to be created.
I suspect that this is the problem I am having. I have tried both return 0 and exit(0) at the end of main(). After running "nios2-download -g --write-gmon gmon.out *.elf" the gmon.out file is nowhere. Is this program termination really a problem or does this mean that the profiling library was not linked after all? Any help or advice is appreciated.
Best regards,
Andrej Gorjan