Hello Mike,
You can:
-
Either use
debug
rather thanprintf
to print debugging messages. For more info read
https://forums.mbed.com/t/printf-vs-debug -
Or disable the STDIO printf functionality by overriding the console as below:
...
FileHandle *mbed::mbed_override_console(int)
{
mbed_file_handle(STDOUT_FILENO)->enable_output(false);
return mbed_file_handle(STDOUT_FILENO);
}
int main()
{
printf("Hello\r\n"); //Won't be printed
...
- Or minimize it by defining the
MBED_MINIMAL_PRINTF
macro in thembed_app.json
file:
{
"macros": ["MBED_MINIMAL_PRINTF"]
}
Best regards,
Zoltan