Segger Embedded Studio 6.30 causes crash if optimised

I'm developing for nRF52832, SDK 17.0.2 and softdevice S312 7.0.1.

After I upgraded from Segger Embedded Studio 6.22a to 6.30 I found that turning on any compiler optimisation causes a runtime error during initialisation of the softdevice. The reported error is NRF_ERROR_INVALID_PARAM.

The error seems to be related to ble_gap.h and calls to softdevice GAP initialisation functions. Perhaps something to do with the compiler's optimisation of the SVCALL macros.

I can switch between the two versions of SES, and I can confirm that the problem only occurs on SES version 6.30 and only when compiler optimisation is set to level 1 or higher.

Is this a Segger problem or is it a Nordic problem?

Thanks,
Barry

Related