Project fall with repeatedly call nrf_ble_scan_start(&m_scan);

Hi!
SDK17.1 S132 nRF52832

I use hrs_c example and it works. But I added adertising code and wanna use both central and periperial at same time. Works, but until the moment when I make connect to my central and disconnect. After disconnect I start 

nrf_ble_scan_start(&m_scan);

again and got 

NRF_BREAKPOINT_COND;

project fall inside 

ret_code_t nrf_ble_scan_start(nrf_ble_scan_t const * const p_scan_ctx)

function.

I can't understand the reason.

There is no any warnings regarding memory in RTT debagger.

So, how to use both central and peripherial at same time? I used it before on SDK15.

Parents Reply
  • Hi!

    and you do this when you initiate scanning with a whitelits
    I can't understand. I do initiate scanning with a whitelits just when I run start scan?

    But I did same operation with or without adverising at same time.

    You claim I got error when I update the identities during start scan?

    Or is this allowed operatrion- update the identities- but only allowed with scan start.

    But! This operation disalowed during advertising? Is this do you meant?

    And If I turn off advertising and will make start scan (with update the identities)- this is normal?

    Conclution:

    update the identities allowed in start scan and disalowed when advertising in proess. Correct? 

Children
Related