I am trying to integrate bootloader to my firmware, But after integrating bootloader to my firmware it's not discoverable.
This is the debug terminal result when I try to debug but I can't see any device showing on nrf Connect app
Using nrf52832, SDK 16.00
Furthermore,
1) Led 2 is blinking
* @brief Function notifies certain events in DFU process. */ static void dfu_observer(nrf_dfu_evt_type_t evt_type) { switch (evt_type) { case NRF_DFU_EVT_DFU_FAILED: bsp_board_init(BSP_INIT_LEDS); bsp_board_led_on(BSP_BOARD_LED_0); break; case NRF_DFU_EVT_DFU_ABORTED: bsp_board_init(BSP_INIT_LEDS); bsp_board_led_on(BSP_BOARD_LED_1); break; case NRF_DFU_EVT_DFU_INITIALIZED: bsp_board_init(BSP_INIT_LEDS); bsp_board_led_on(BSP_BOARD_LED_2); break; case NRF_DFU_EVT_TRANSPORT_ACTIVATED: bsp_board_led_off(BSP_BOARD_LED_1); bsp_board_led_on(BSP_BOARD_LED_2); break; case NRF_DFU_EVT_DFU_STARTED: bsp_board_init(BSP_INIT_LEDS); bsp_board_led_on(BSP_BOARD_LED_0); bsp_board_led_on(BSP_BOARD_LED_1); bsp_board_led_on(BSP_BOARD_LED_2); break; default: break; } }
2).. When I comment out the bootloader code but add its files to my firmware an error occurs as
app: ERROR 1 [NRF_ERROR_SVC_HANDLER_MISSING] PC at: 0x0002FF01
The error is being shown in ble_stack_init, but this function looks fine
static void ble_stack_init(void) { ret_code_t err_code; err_code = nrf_sdh_enable_request(); APP_ERROR_CHECK(err_code); // Configure the BLE stack using the default settings. // Fetch the start address of the application RAM. uint32_t ram_start = 0; err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &ram_start); APP_ERROR_CHECK(err_code); // Enable BLE stack. err_code = nrf_sdh_ble_enable(&ram_start); APP_ERROR_CHECK(err_code); // Register a handler for BLE events. NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL); }
Csan't figure out where to find the problematic part in code or any file that need to be added