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.

CCS/CC3220SF: UtilsDelay not working on seting optimization to None

Part Number: CC3220SF

Tool/software: Code Composer Studio

Hi Team,

I'm using one-wire protocol (MAX31850) for Thermocouple, for reading and writing bits using UtilsDelay. My objective is to have minimum 15Micro sec delay  and maximum 60 Microsec delay between 2 consecutive gpio read operation. With optimization level set to -Og it is working (able to read thermocouple output) properly but  on setting optimization level to None, it is not reading properly.    Let me know why it is behaving so on setting optimization to None. Earlier i used usleep for introducing delay, it was not working as expected so used UtilsDelay . Is there any other API available 2 introduce 15 sec delay.

FYR,

Development Environment : CCS V9.2.0, simplelink_cc32xx_sdk_3_40_00_05

Compiler : ARM gcc v7.2.1 (Linaro).

Regards,

Parthasarathi