Hi,
I´m working with "TWI Sensor" example of SDK 16 and I modified the Main function of main.c as follows (just added NRF_LOG_INFO("\r\ntest"));:
* @brief Function for main application entry.
*/
int main(void)
{
APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
NRF_LOG_DEFAULT_BACKENDS_INIT();
NRF_LOG_INFO("\r\nTWI sensor example started.");
NRF_LOG_FLUSH();
twi_init();
LM75B_set_mode();
while (true)
{
nrf_delay_ms(500);
NRF_LOG_INFO("\r\ntest");
do
{
__WFE();
}while (m_xfer_done == false);
read_sensor_data();
NRF_LOG_FLUSH();
}
}
/** @} */
I just added this Log Info for making sure the code is running well. But in my UART terminal I can´t see the text "test" every 500ms. So I would like to start debugging to get more information.
I tried to work with your insctructions of debugging (https://www.youtube.com/watch?v=uP8RYgYGRvI)
So I go to "app_error.c" and set a breakpoint to the line as shown in screenshot. Why is there a question mark on the breakpoint?
If I press "debug" again, the program is not halted anywhere. I can nothing see on debug terminal. I got the message "TWI sensor example started." two times, I don´t why two times. But this shows, that main.c is running.
What could I try to do?