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

i use NCS1.5.0 debug nrf5340 ,a adc code cannot run to next two breakpoints

the code yesterday when debug can pop out voltage ,i do not chang anything today ,the code can not run the location ,i make three breakpoints in code and debug ,the code only run first point,and not run next breakpoints. ,so can not run to place  LOG_WRN("ADC read err %d", err);  and LOG_INF("Voltage%d: %u mV / %d", i, voltage, adc_buffer[i]);

may zephyr os switch out from  err = adc_read(adc_dev, &sequence); and do not run code LOG_WRN("ADC read err %d", err);  and LOG_INF("Voltage%d: %u mV / %d", i, voltage, adc_buffer[i]); followed 

Parents
  • i put CONFIG_DEBUG_OPTIMIZATIONS=y in prj.conf , it is the same result .i west update NCS1.5.0 ,OR re-upzip my old ncs1.5.0 ,no effect. nrf5340 debug with SEGGER Embedded studio . i changed not a char ,but 3 days before can LOG_INF voltage ,but from yesterday ,code debug can not run to neither  if nor else .

Reply
  • i put CONFIG_DEBUG_OPTIMIZATIONS=y in prj.conf , it is the same result .i west update NCS1.5.0 ,OR re-upzip my old ncs1.5.0 ,no effect. nrf5340 debug with SEGGER Embedded studio . i changed not a char ,but 3 days before can LOG_INF voltage ,but from yesterday ,code debug can not run to neither  if nor else .

Children
Related