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.

CC2541 Compiler optimizations

Other Parts Discussed in Thread: CC2541

HI,

I am working on CC2541 with the BLE stack, based on central example.

when choose the "None Optimization" then compile and run, it is like halted or restarted! it does not reach a break point and when I pause in debug mode I see that it's still halted somewhere in the initialization.

in the preprocessor definitions I made the LCD false I thought it will work, but does not.

and now when I compile as "High size optimization" the code runs and I can debug, but when I make step over it jumps forward and backward in a strange way!

what can do to make it works with "None optimization" to solve the problem of halting?

Thanks.