Perhaps this is something avoidable, but using a VisualGDB example to print to UART using SysProfiler and FreeRTOS causes a SIGTRAP when using the vsnprintf
function. It stops inside the xEventGroupWaitBits
function at uxReturn = uxTaskResetEventItemValue();
.
Somehow I did not encounter this issue before. Anyone have a thought on this? Function used and called in start of a FreeRTOS task, it hangs on the vsnprintf
:
char * pmpGetValue(const char *cmd, ...)
{
char send_data[PMP_CMD_LEN];
memset(send_data, 0x00, PMP_CMD_LEN);
va_list args;
va_start(args, cmd);
int cx = vsnprintf(send_data, PMP_CMD_LEN, cmd, args);
va_end(args);
if (cx < 0 | cx > PMP_CMD_LEN)
{
addConsoleBuffer("Buffer overflow.");
}
pmpSend(send_data);
char *data = pmpReceive();
char *data_parse = pmpParse(data);
return data_parse;
}
-
This topic was modified 3 years, 9 months ago by bjornharink.