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

Break point problem

I wants to use break point in project but when i set break point then 4 or 5 times working after that goes to NRF_BREAKPOINT_COND, I am using nRF52832. so guide me where is the problem.


NRF_BREAKPOINT_COND;
// On assert, the system can only recover with a reset.

#ifndef DEBUG
NRF_LOG_WARNING("System reset");
NVIC_SystemReset();
#else
app_error_save_and_stop(id, pc, info);
#endif // DEBUG
}

  • when we wait approx. 30 to 40 sec at break point then Control goes to NRF_BREAKPOINT_COND ow to remove this problem

  • As I have tried to explain earlier, you can't do this if you have enabled Bluetooth in your app.

  • Can we use Segger Embedded Studio V3.34 for  monitor mode debugging ?

  • After Implementing monitor mode debugging below error is comming

    Output/ble_app_uart_c_pca10040_s132 Release/Obj/JLINK_MONITOR_ISR_SES.o: In function `DebugMon_Handler':
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_16.0.0\nRF5_SDK_16.0.0\examples\ble_central\ble_app_uart_c/JLINK_MONITOR_ISR_SES.s:159: undefined reference to `JLINK_MONITOR_OnEnter'
    1> Output/ble_app_uart_c_pca10040_s132 Release/Obj/JLINK_MONITOR_ISR_SES.o: In function `_WaitForJLinkCmd':
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_16.0.0\nRF5_SDK_16.0.0\examples\ble_central\ble_app_uart_c/JLINK_MONITOR_ISR_SES.s:183: undefined reference to `JLINK_MONITOR_OnPoll'
    1> Output/ble_app_uart_c_pca10040_s132 Release/Obj/JLINK_MONITOR_ISR_SES.o: In function `_HandleRestartCPU':
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_16.0.0\nRF5_SDK_16.0.0\examples\ble_central\ble_app_uart_c/JLINK_MONITOR_ISR_SES.s:228: undefined reference to `JLINK_MONITOR_OnExit'
    Build failed

    pls. suggest.

  • After Implementing monitor mode debugging below error is comming

    Output/ble_app_uart_c_pca10040_s132 Release/Obj/JLINK_MONITOR_ISR_SES.o: In function `DebugMon_Handler':
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_16.0.0\nRF5_SDK_16.0.0\examples\ble_central\ble_app_uart_c/JLINK_MONITOR_ISR_SES.s:159: undefined reference to `JLINK_MONITOR_OnEnter'
    1> Output/ble_app_uart_c_pca10040_s132 Release/Obj/JLINK_MONITOR_ISR_SES.o: In function `_WaitForJLinkCmd':
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_16.0.0\nRF5_SDK_16.0.0\examples\ble_central\ble_app_uart_c/JLINK_MONITOR_ISR_SES.s:183: undefined reference to `JLINK_MONITOR_OnPoll'
    1> Output/ble_app_uart_c_pca10040_s132 Release/Obj/JLINK_MONITOR_ISR_SES.o: In function `_HandleRestartCPU':
    1> D:\NORDIC\Nordic\sdk\nRF5_SDK_16.0.0\nRF5_SDK_16.0.0\examples\ble_central\ble_app_uart_c/JLINK_MONITOR_ISR_SES.s:228: undefined reference to `JLINK_MONITOR_OnExit'
    Build failed

    pls. suggest.

Related