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.

How to fix issue with optimization screwing things up?

Other Parts Discussed in Thread: BLE-STACK

I'm using CC2650LP and the SimpleBLEPeripheral project example.

When I define the symbol PLUS_BROADCASTER (to enable advertisements while a device is connected), the build completes without errors, but when debugged on the device it no longer advertises at all.

I did find a workaround to this problem by simply lowering the optimization from level 4 down to 2 - Global Optimizations, but there has got to be a better solution than this.

Jeff