This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Simulator Termination - loadti and CCSV5

Hello, 

I am running simulations using both loadti and CCSV5. I am having trouble with program termination - when my code reaches its last statement, the simulator continues running by just reading NOPs.

In CCSV5, I can work around this by adding an extra statement at the end of my code, and using the run to line option. 

In loadti, the only way I can get the program to terminate is to set a timeout, however this does not give an accurate cycle count at the end. 

Is there any way to force the simulator to exit on termination of the code, or at least on a specific instruction? 

Cheers, 
Kuba