• TI Thinks Resolved

Compiler/TMS570LS3137: I2C is not working after optimization

Part Number: TMS570LS3137

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);