Closed tomasra closed 7 years ago
Turned out that this was caused by default linker script RAM settings adjusted for zero BLE peripherals:
MEMORY
{
FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
RAM (rwx) : ORIGIN = 0x200019c0, LENGTH = 0xe640
}
It was solved after setting RAM layout for 1 peripheral link (see app_ram_base.h in SDK):
MEMORY
{
FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
RAM (rwx) : ORIGIN = 0x200021b8, LENGTH = 0xde48
}
I'm trying to run BLE_Gateway example on PCA10040 development board using SDK v12.2.0 and S132 v3.0.0 softdevice. After adapting the existing makefile for nRF52, building and flashing the firmware, it ends up in error loop with all board leds being lit.
Debugging showed that sd_ble_uuid_vs_add returns NRF_ERROR_INVALID_ADDR at the following location:
Compiler flags used in makefile and related to this example:
I tried flashing the provided binary (rbc_gateway_example_serial_nRF52832_xxAA.hex) - this also causes all leds to light up, likely indicating the same issue.