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

Unexpected error from app_error_handler

Hi, I have developed the custom services for nrf52832 with sdk16 in SES

in write character

Sometimes the write option works fine

unexpected error after write function and system get hanged

while i debug the nrf52832.

I received error state like

and in nrf connect  show

ERROR8(0x8)  gatt conn timeout

ERROR 133(0x85) gatt error

suggest me to overcome this error

Parents Reply Children
  • No, it most likely not the reason why it crashed. You can find the code inside app_timer_start() it will simply return if the app_timer is already active. 
    Please try to follow what we described in the guide and find the line of code, the filename and the error code that cause the assertion. 

  • I received the error like


    <error> app: ERROR 3735928559 [Unknown error code] at F:\1.nRF52\1.SDK_C/components/libraries/timer/app_timer2.c:298
    PC at: 0x0003368B
    <error> app: End of error report

    what is "PC at: 0x0003368B"

    and line 298 in app_timer2.c

     ASSERT(app_timer_cnt_diff_compute(drv_rtc_counter_get(p_instance),
                                              mp_active_timer->end_val & RTC_COUNTER_COUNTER_Msk) < APP_TIMER_SAFE_WINDOW);

            NRF_LOG_INST_DEBUG(mp_active_timer->p_log, "Compare EVT");

  • Hi Hung, Still I got this error. is there any solution.

    Actual state is.

    The Device is getting Hang is these following cases

    My device is custom board have one user button, Accelrometer and gyroscope sensor

    SDK 15.3 with DFU bootloader

    The user button have multiple concept single press to ON , single press to change mode, Double press to calibrate sensor, and Long press to Sleep mode

    and In sensor side the raw data read from the sensor through I2C and send it to Bluetooth connected device (Mobile phone ).  for every 250 ms .

    Problem here

    1. while Bluetooth connected to the mobile device if the connection fails or mislead with other Bluetooth devices already connected with mobile phones. that leads my device to HANG

    2. when multiple times of pressing the button to calibrate the sensor repetitive five times device got hang

    Does the error is because of Timer interrupt ? previous is showed you the error image. please check in previous conversation

  • Hi Sunil, 


    When the device "hang" the CPU is stuck in a loop somewhere and doing something. You would need to find a way to debug it. 
    I already sent you the link to the debug guide. You need to set a break point in the assert handler, check which function causing the issue. Then we can try to help you.
    We can't help with just the information that if you connect to wrong Bluetooth device, you device hang.  We don't know the code you made, we can't really help. 

Related