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

NRF52840 use ble_app_blinky source code add timer function?

I used ble_app_blinky source code want to add timer0 function.

main.c

const nrf_drv_timer_t m_timer0 = NRF_DRV_TIMER_INSTANCE(0);

static void timer0_event_handler(nrf_timer_event_t event_type, void * p_context)
{
}

I used ble_app_blinky source code want to add timer0 function.

main.c

const nrf_drv_timer_t m_timer0 = NRF_DRV_TIMER_INSTANCE(0);

static void timer0_event_handler(nrf_timer_event_t event_type, void * p_context)
{
}

static void timer0_init(void)
{
nrf_drv_timer_config_t timer_cfg = NRF_DRV_TIMER_DEFAULT_CONFIG;
ret_code_t err_code = nrf_drv_timer_init(&m_timer0, &timer_cfg, timer0_event_handler);
}

Compiler is OK. But I get a message "<error> app: SOFTDEVICE: INVALID MEMORY ACCESS 0x100"

Parents Reply Children
Related