I am using TWI sensor example to read data from mpu6050. The program runs without error and showing expected values in watch window. In order to see the real time values i used J-link viewer. Since i am using this for the first time i couldnt connect it with the program first. I changed the NRF_LOG_DEFERRED to 0 in sdk_config.h as seen in a forum about this. When doing this, program got stuck in NRF_BREAKPOINT_COND in app_error_weak. When i search about this error i have seen solutions like changing the memory regions in Linker configuration file editor. But this didnt help me. My primary objective is to see the values of accelerometer in realtime.
I am using IAR with nrf 52832 DK and nrf5_SDK_15.3.0
Have you enabled nrf log module and also the rtt backend?
// <e> NRF_LOG_ENABLED - nrf_log - Logger
#define NRF_LOG_ENABLED 1
// <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
#define NRF_LOG_BACKEND_RTT_ENABLED 1
Hey , Thanks for the response . As u said i changed the value of NRF_LOG_BACKEND_RTT_ENABLED to 1 which was 0 before and NRF_LOG_ENABLED was already 1. Now i am getting fatal error in j-link viewer after getting one set of output. After that it get stuck at the same location(NRF_BREAKPOINT_COND ).
The error is probably somewhere in your application code. You should try to debug to see why you are going into the error handler.
Could you attach the log output from the j-link viewer and a screenshot of the callstack?