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

Crash in the sd_mbr_command

Hi,

I try to build the DFU with:

  1. S110 V7.0
  2. SDK 6.1
  3. Eclipse w/ GCC
  4. LEDs for DEBUG
  5. BOOTLOADER_REGION_START = 0x0003C000

And, always crash (no return) in the sd_mbr_command().

Code as below:

static void ble_stack_init(bool init_softdevice) {
uint32_t         err_code;
sd_mbr_command_t com = {SD_MBR_COMMAND_INIT_SD, };

nrf_gpio_pin_set(LED_1);
if (init_softdevice)
{
	nrf_gpio_pin_set(LED_2);
    err_code = sd_mbr_command(&com);
    APP_ERROR_CHECK(err_code);
}

nrf_gpio_pin_set(LED_3);

err_code = sd_softdevice_vector_table_base_set(BOOTLOADER_REGION_START);
APP_ERROR_CHECK(err_code);

SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, true);
...
...
...
  • LED_0 : ON (at start)
  • LED_1 : ON
  • LED_2 : ON
  • LED_3 : Never ON

What is the problem ?

Parents
  • Hi, I'm not sure what the issue could be. Can you try the attached makefile and see if you still get the same problem? To get the correct search path, place it in this path: ..\nrf51_sdk_v6_1\nrf51822\Board\nrf6310\device_firmware_updates\bootloader\gcc\

    Makefile

Reply
  • Hi, I'm not sure what the issue could be. Can you try the attached makefile and see if you still get the same problem? To get the correct search path, place it in this path: ..\nrf51_sdk_v6_1\nrf51822\Board\nrf6310\device_firmware_updates\bootloader\gcc\

    Makefile

Children
No Data