Hi,
In my main function, I just call a acceleration_read function to get data from the accelerometer sensor and call a NRF_LOG_INFO function.
But there're something wrong with the logs. Details are as below:
the code in the cycle in main function:
for (;;) { icm_x_acc[0]=ICM_Get_Accelerometer(ICM20602_ACCEL_XOUT_H);//0x43 icm_x_acc[1]=ICM_Get_Accelerometer(ICM20602_ACCEL_XOUT_L); NRF_LOG_INFO("ACCEL_XOUT_H is£º%x\n",icm_x_acc[0]); NRF_LOG_INFO("ACCEL_XOUT_L is£º%x\n",icm_x_acc[1]); nrf_delay_ms(5); idle_state_handle(); }
the log sequence: (at the beginning, there's only ACCEL_XOUT_L existing, after a while, "[1;31mLogs dropped (1)[0m " occurred. I have no idea why this happened and ACCEL_XOUT_H was not there)
<info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m <info> app: ACCEL_XOUT_L is:0 [1;31mLogs dropped (1)[0m

So, i try to use debug mode to find out error information. I set breakpoint at nrf_delay_ms and idle_state_handle, as below.
i click on "step " in debug mode when the code call the nrf_delay_ms(5), then the code went to "app_error_weak.c" and stopped as the picture below.
I tried to click the "step" button and see the error information in "app_error_save_and_stop(id, pc, info)" , but i found that after "step" the code didn't go to "app_error_save_and_stop(id, pc, info)" and keil also changed its status,
I want to why the code can't go to the "app_error_save_and_stop"function (so that i can't get the error information)??
please help me,thanks.
Jerry