(gdb) finish Run till exit from #0 0x08004196 in pb_encode (stream=stream@entry=0x20017f04, fields=, src_struct=src_struct@entry=0x20000300 ) at nanopb/pb_encode.c:510 0x0800291c in USB_CMD::send_res (this=0x200002e8 ) at cmd.h:36 36 if(!pb_encode(&stream, Response_fields, &cmd)) { Value returned is $11 = false (gdb) p stream $12 = { callback = 0x8003bdd , state = 0x20017f59, max_size = 64, bytes_written = 1, errmsg = 0x80049c4 "array max size exceeded" } (gdb) p res $13 = { which_res = 1 '\001', res = { pong = { payload = 0 }, current_position = { pos_count = 0 '\000', pos = {0, 0, 0, 0, 0, 0} } } }