Can not resume debugging session

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can not resume debugging session

2,420 Views
Emin
Contributor III

In this demo I wanted to resume the debugging session for the next lines in order to see the result in terminal. However it is not going to the next line or to continue in order process the following part of the code where Im printing some inference numbers on terminal. How can I fix this?

this is the code where Im doing debugging:

int main(void)
{
/* (recording_win x frame_shift) is the actual recording window size. */
int recording_win = 1;

KWS_MFCC kws_mfcc(recording_win);

const std::string labels[] = {"_silence_", "_unknown_","baby_cry", "baby_laugh"};

audio_init();

 

/* Init board hardware */
BOARD_ConfigMPU();
BOARD_InitPins();
BOARD_BootClockRUN();
CLOCK_InitAudioPll(&audioPllConfig);
BOARD_InitDebugConsole();

InitTimer();

std::unique_ptr<tflite::FlatBufferModel> model;
std::unique_ptr<tflite::Interpreter> interpreter;
TfLiteTensor* input_tensor = 0;
InferenceInit(model, interpreter, &input_tensor, false);

LOG(INFO) << "Baby Cry Detection example using a TensorFlow Lite model.\r\n" << std::endl;
LOG(INFO) << "Detection threshold: " << DETECTION_TRESHOLD << "%\r\n";

LOG(INFO) << "\r\nStatic data processing:\r\n" << std::endl;

RunInference(&kws_mfcc, (int16_t*)OFF, labels, model, interpreter, input_tensor);
RunInference(&kws_mfcc, (int16_t*)RIGHT, labels, model, interpreter, input_tensor);
RunInference(&kws_mfcc, (int16_t*)LEFT, labels, model, interpreter, input_tensor);
RunInference(&kws_mfcc, (int16_t*)ON, labels, model, interpreter, input_tensor);

0 Kudos
Reply
1 Reply

2,402 Views
ErichStyger
Specialist I

Have you already tried suspending the target to see what it is doing?

0 Kudos
Reply