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.

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

  • The description is too vague for me to be sure.  But I suspect one or more variables needs to declared volatile.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

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.