I use chipfactory to run functional simulation of one SHARC+ core of SC589.
In my main I tried:
return 2; // also -2, 1, -1
exit(2); // also -2, 1, -1
However, the simulation always ends up showing:
- Simulation result : 0 (ok)
- Simulated application result : 0
How to get the application result code in the simulator?
PS: I know about -exit-value but this is not relevant yet since I cannot see the app result at all in the simulator.