In the code for the bootloader in dfu_dual_bank.c
and the function dfu_init
, I currently get an error code on timer start: 4
(NRF_ERROR_NO_MEM
).
err_code = app_timer_start(m_dfu_timer_id, DFU_TIMEOUT_INTERVAL, NULL);
if (err_code != NRF_SUCCESS)
nrf_gpio_pin_set(PIN_LED6);
What might be the reason that app_timer_start
would fail to work for the bootloader? From the code I can only see it being call in dfu_init
and dfu_timer_restart
. The latter function is not called, so can't be the culprit.
Do I need to do specific things to keep memory usage low for the bootloader?