Tool/software:
I have write custom bootloader, it jumps to application after checking the valid application is present.
If I use level 0 optimisation it not jumping to application. If I use level 2 optimisation it works properly.
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.
Tool/software:
I have write custom bootloader, it jumps to application after checking the valid application is present.
If I use level 0 optimisation it not jumping to application. If I use level 2 optimisation it works properly.
Hi Saraswati,
With optimization enabled, the compiler will modify or rearrange code based on the specified level. In the case you have some undefined behavior in your bootloader, it could be that the compiler "misinterprets" your original intent and modifies a critical section. You can find the specifics of our compiler optimization settings here: https://software-dl.ti.com/codegen/docs/tiarmclang/compiler_tools_user_guide/compiler_manual/using_compiler/compiler_options/optimization_options.html
When you say level 0 optimization, are you referring to '-O0'?
Best,
Sam