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

reboot when connected use hts .

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?

Parents
  • The HTM example is known to work fine. Seems like there is some failure in your app which is causing a soft reset.

  • 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
    }
    
Reply
  • 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
    }
    
Children
No Data
Related