Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

nRF5 SDK examples SES release build crash

I wanted to use SES (6.32b) to build an example app (nRF5_SDK_14.2.0_17b948a, ble_app_blinky) and run it on a Nordic dev board (nRF52840 Development Kit), but crashed.

When I use the example SES debug build, the app works fine. 

But when I use the release build, the app runs into error handler.

The SES config file I uses was : nRF5_SDK_14.2.0_17b948a/examples/ble_peripheral/ble_app_blinky/pca10040/s132/ses

The error was the sd_ble_gap_ppcp_set() returns NRF_ERROR_INVALID_PARAM.

I've tried another apps e.g ble_app_hids_mouse , but got the same error.

I did a further check for the issue, I found the issue might be related with the code optimization level, the SES debug build uses 'Level 0', if I set it to 'Level for size', the debug build will get the same error.
My questions are:
1. Have you seen the issue? it is weird that the example code + release build + dev board doesn't work. It seems likely that I did something wrong, but I checked and it seems all good in my side.
2. Is nRF5_SDK_14 a supported version of SES (6.32b)? Actually I did test nRF5_SDK_17, got the same error.
Thanks in advance.
Parents Reply Children
No Data
Related