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.

Code Execution Issue - C28 Cycle Accurate Simulator Bug?

Guru 20045 points


Hello,

I am having a code execution issue when running my code in the cycle accurate simulator (I haven't  yet tried to see what happens on the actual uP).

The if statement in the code shown below doesn't work as expected, i.e. If I2Cresult != I2C_NOT_IDLE, setting of result to EEPROM_FAILURE should be skipped.  However, its not working that way.  the debugger, executes the result = EEPROM_FAILURE when I2Cresult doesn't equal I2C_NOT_IDLE.

Is this a simulator issue?

I also included a snapshot of expressions, disassembly and CPU registers

Stephen