This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Port Segger to IAR: WFE Loop

We are working on porting an MESH example from Segger to IAR.

We started with the BLE Peripheral Template, and pulled all the code for the light_switch_provisioner into the project.  After fixing all the compiler errors/warnings and finally getting it to run, the example gets stuck in a WFE loop at address 0x23B1A.  As far as I can tell this is in the SoftDevice.  We are using the latest version of everything:

s140_nrf52840_6.0.0-6

nRF5_SDK_15.0.0_a53641a

MESH 2.0.1

Nordic has said that they do not support IAR, and this is a major downside to their solution for us.  We would appreciate some support in doing our own port.  As this code is in the SoftDevice, we can not see where this is getting stuck.

What is going wrong here and how we can make things function?

Related