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.

CC2652R: code optimisation

Part Number: CC2652R


Hi Team,

I would like to switch off the optimisation for a function.

This example does not work:

#pragma FUNCTION_OPTIONS( function,"--opt_level=off" )
static inline void function(uint8_t byte){
    // time dependent code
}

I optimise the rest of the code with -O4.

Where is my mistake?

Best Regards,

Eric