5 years, 8 months ago.

fds on mbed

Is it possible to use FDS with mbed on nRF52832 QFAA (512kB flash) ? I am trying to initialize BLE and FDS using mbed code like this

BLE &ble = BLE::Instance(); ble.onEventsToProcess(scheduleBleEventsProcessing); ble.init(bleInitComplete);

I'm calling fds_init() inside of bleInitComplete() prior start advertising, however nRF52 hangs within few ms after fds_init(). I suspect this has something to do with flash memory regions?

I have in my linker script following:

/* Linker script to configure memory regions. */

/* Default to no softdevice */

if !defined(MBED_APP_START) define MBED_APP_START 0x0 endif if !defined(MBED_APP_SIZE) define MBED_APP_SIZE 0x80000 endif /* If softdevice is present, set aside space for it */

if !defined(MBED_RAM_START) if defined(SOFTDEVICE_PRESENT) define MBED_RAM_START 0x200031D0 define MBED_RAM_SIZE 0xCE30 else define MBED_RAM_START 0x20000000 define MBED_RAM_SIZE 0x10000 endif endif define MBED_RAM0_START MBED_RAM_START define MBED_RAM0_SIZE 0xE0 define MBED_RAM1_START (MBED_RAM_START + MBED_RAM0_SIZE) define MBED_RAM1_SIZE (MBED_RAM_SIZE - MBED_RAM0_SIZE)

MEMORY { FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE RAM_NVIC (rwx) : ORIGIN = MBED_RAM0_START, LENGTH = MBED_RAM0_SIZE RAM (rwx) : ORIGIN = MBED_RAM1_START, LENGTH = MBED_RAM1_SIZE }

Any suggestion if there is something special needed to configure application data storage region in order to make FDS work on mbed ? Thanks Peter

Question relating to:

The nRF52 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF52 Series SoC. This kit supports both development for nRF52832 SoCs.
Be the first to answer this question.