Altera_Forum
Honored Contributor
12 years agonios2 iss problem/bug
Hello,
I am tryign to run the nios2-iss from thet command line and have run into a problem. Here is what ive tried:$cat main.c
int main() {
return 0;
}
$nios2-elf-gcc main.c
$nios2-elf-objdump -d ./a.out > disassembly.txt
$nios2-iss -f ./a.out -ta:trace.sim.txt
...
Error! : Simulation failed in component cpu_0 at instruction 22 (PC=0x110c instr=0x00011481).
...
Info : cpu_0 simulation return code 4300
Info : Exiting Nios2_system model with return code 4301 (0 fatal errors, 1 error, 0 warnings) looking at the trace you can see that the iss is crashing when trying to jump to a function _memset _zero_bss from the _start routines before it even reaches main. so it seems to be a problem with the iss itself. 0000110c <_zero_bss>:
110c: 00011481 jmpi 1148 <memset> attached is the simulator trace and a disaassembly dump. I wonder what i am doing wrong, or if this is a bug in the iss? Please help.