This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Effect of optimization levels while using freertos on cortex-R52

Hi everyone,

When I'm using FreeRTOS  with cortex R52, in optimization level O0, it works fine. context swithing is also fine.

But when i use optimization level O3, there are so many issues and they are very random. My question is ..whether there is a problem with FreeRTOS in optimization level O3? 

Any small suggestion will mean so much to me.

Thanks & Regards,

Jahnavi Guvvala.

Parents
  • Any small suggestion will mean so much

    Almost always, if increasing optimisation breaks your code, that is due to flaws in your code - usually, relying upon things which are not guaranteed by the language.

    A common one is omitting to use volatile where it's necessary.

    Try googling "optimisation breaks my code", or similar ...

    whether there is a problem with FreeRTOS in optimization level O3? 

    You would have to ask the FreeRTOS people if there are any known specific issues - but it's rather unlikely.

Reply
  • Any small suggestion will mean so much

    Almost always, if increasing optimisation breaks your code, that is due to flaws in your code - usually, relying upon things which are not guaranteed by the language.

    A common one is omitting to use volatile where it's necessary.

    Try googling "optimisation breaks my code", or similar ...

    whether there is a problem with FreeRTOS in optimization level O3? 

    You would have to ask the FreeRTOS people if there are any known specific issues - but it's rather unlikely.

Children