I think I have followed everything from:
to convert the dual_bank_serial_s110 to an S210 serial bootloader but I can't get pstorage in the bootloader to work. pstorage calls cmd_queue_enqueue() to save the command but cmd_queue_dequeue() never gets called because sys_evt_dispatch() never gets called.
It seems ble_stack_init() might be where the issue is. Given I went from a BLE to an ANT SoftDevuce. I commented out sd_ble_enable() as there is no ble. The method looks like:
static void ble_stack_init(bool init_softdevice)
{
uint32_t err_code;
sd_mbr_command_t com = {SD_MBR_COMMAND_INIT_SD, };
if (init_softdevice)
{
err_code = sd_mbr_command(&com);
APP_ERROR_CHECK(err_code);
}
err_code = sd_softdevice_vector_table_base_set(BOOTLOADER_REGION_START);
APP_ERROR_CHECK(err_code);
SOFTDEVICE_HANDLER_APPSH_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
// Enable BLE stack
// ble_enable_params_t ble_enable_params;
// memset(&ble_enable_params, 0, sizeof(ble_enable_params));
// ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
// err_code = sd_ble_enable(&ble_enable_params);
// APP_ERROR_CHECK(err_code);
err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
APP_ERROR_CHECK(err_code);
}
Any help you can give me?
Thanks, Gary