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

if initial uart_config() before ble_stack_init(), softdevice_handler_init will be failed!

if initial uart_config() before ble_stack_init(), softdevice_handler_init will be failed! with SDK 6.0

softdevice_handler_init() will returns 0x00001001 ("NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION).

it is nothing to do with "NRF_CLOCK_LFCLKSRC_XTAL_20_PPM". .so i initial uart_config() after ble_stack_init(), then it is ok..

what's the problem?

Parents Reply
  • hi, Håkon: thanks a lot. the code of uart_config() is the example without softdevice. so it hasn't the code to set the interrupt priority. if it work with softdevice. it must reset the interrupt priority (APP_IRQ_PRIORITY_LOW or APP_IRQ_PRIORITY_HIGH).

    after adding the code of NVIC_SetPriority(UART0_IRQn,APP_IRQ_PRIORITY_LOW); it work fine with softdevice. thanks anyway.
    
Children
No Data
Related