Hi,
I try to build the DFU with:
- S110 V7.0
- SDK 6.1
- Eclipse w/ GCC
- LEDs for DEBUG
- 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 ?