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.

Compiler/TMS570LS3137: I2C is not working after optimization

Part Number: TMS570LS3137
Other Parts Discussed in Thread: TCA9539

Tool/software: TI C/C++ Compiler

Dear all,

I have tested TCA9539 IO Expander with TMS570 (default optimization level) and now i have modified optimization level to 

--opt_level=3

--opt_for_speed=4

but TCA9539 is not working and its always waiting in below condition. PFA

/* Wait until Stop is detected */
while(i2cIsStopDetected(i2cREG1) == 0);