This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error code 7 after ble_advdata_set()

Hello,

I'im using nRF52840 dev kit along with S140 version 6.0.0-6.alpha. I applied the patch to SDK verison 14.0 so be able to have maximum range fr ATT MTU throughput example.

-First run of the example throws BFARVALID (Branch to an address where no code is located) hard fault error without running any code. So I loaded the linker file found in the SDK 14.2 that differ from the existing linker(SDK 14.0) in :

Linker found in SDK 14.2.0

define symbol __ICFEDIT_intvec_start__ = 0x22000;
define symbol __ICFEDIT_region_ROM_start__   = 0x22000;
define symbol __ICFEDIT_region_RAM_start__   = 0x200030d0;

Linker in SDK 14.0

define symbol __ICFEDIT_intvec_start__ = 0x25000;
define symbol __ICFEDIT_region_ROM_start__   = 0x25000;
define symbol __ICFEDIT_region_RAM_start__   = 0x200031c0;

With this new linker, the example starts normally but throws an err_code number 7 (NRF_ERROR_INVALID_PARAM)when ble_advdata_set() is called in the code. I didn't change anything in the adv data string nor the example at all.

Any idea on how I can figure out and debug this error and find a solution for it ?

NB. I was able to run and test this example from SDK version 14.2.0 which is version s140 5.0.0.alpha.

Related