So I have still been struggling with getting the software profiling to work. In a few test runs where I keep the amount of data very small, I actually managed to get a gmon.out file. Now in most other cases, when I program the CPU and then start it, the program kind of hangs itself up and never really returns.
So now with the signal tap logic analyzer and the niosII plugin for it, I was able to collect some trace data of the program execution. So the program actually never makes it into my main function and there seems to be some kind of exception, that causes the processor to reset itself.
So after hitting instruction wrctl status, r2 there are no instructions executed for some time and then the processor jumps to the __flash_exceptions_start.
I also looked up this symbol in the .objdump file.
Does anybody have an idea, what could lead to this error?