This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

disable SD

Hello, I use nrf51422 for my project. I have to collect data via BLE nus from phone, but after that i don't need SD anymore. Can i use blocked hardware, like RTC0, after disable sd? I try to do that, but i get Hard Fault.

Regards Michał,

Parents
  • Thank you for answer. But its still not work. After collect my data i use function sd_ble_gap_disconnect and softdevice_handler_sd_disable. When i want to take another step in debug after this function, its going to hardfault. its look like this:

    	test=sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION );
    	
    	test=softdevice_handler_sd_disable();
    	
    	ppi_init();
    	rtc_config();
    	timer1_init();
    

    Do i need call other function before sd disable?

    Regrads Michal,

  • I did like you said, I wait for BLE_GAP_EVT_DISCONNECT, but still after sd_disable next step in debugger is going to hardfault. What i need to do before i use softdevice_handler_sd_disable()?

    1. disconect
    2. wait for BLE_GAP_EVT_DISCONNECT
    3. and not go into advertising. some thing more? I will be grateful for your response. Regards
Reply
  • I did like you said, I wait for BLE_GAP_EVT_DISCONNECT, but still after sd_disable next step in debugger is going to hardfault. What i need to do before i use softdevice_handler_sd_disable()?

    1. disconect
    2. wait for BLE_GAP_EVT_DISCONNECT
    3. and not go into advertising. some thing more? I will be grateful for your response. Regards
Children
No Data
Related