I have two projects exhibiting the same problem.
I have custom board using the nRF52832 and another using the nRF52840. In both cases I am using nRF5 SDK latest version and Segger Embedded Studio 8.32.
If I build the application using a Debug build it works fine. However, if I do a Release build the application does not work properly. It is as if the memory is being overwritten.
In the case of the nRF52832, I am not even using the Bluetooth stack, so it is a very simple application. The nRF52840 application is more complex and does use the Bluetooth stack.
I know this sounds strange, but I can reproduce at will.
Can you give me any hint as to where to start looking. I can make the project and source code available.