softdevice 8.01 s110 device nrf81522 hts example,add three ch adc,lcd eg. phone : HTC one M7 app:nrf tools HTM when try to connect the device by BLE, when recive the connected event , it's reboot. what's problem?
I mean to say that reboot is not triggered within softdevice. If you are using APP_ERROR_CHECK macro or default app_error_handler, then whenever the condition in your app fails, then there is a soft reset
#define APP_ERROR_CHECK(ERR_CODE) \
do \
{ \
const uint32_t LOCAL_ERR_CODE = (ERR_CODE); \
if (LOCAL_ERR_CODE != NRF_SUCCESS) \
{ \
APP_ERROR_HANDLER(LOCAL_ERR_CODE); \
} \
} while (0)
_WEAK void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name)
{
// On assert, the system can only recover with a reset.
#ifndef DEBUG
NVIC_SystemReset();
#endif
}
can you please accept this answer by clicking the grey ✓ button , so that we can close this case.