ESP IDF printf
Posted: Wed Jun 01, 2022 8:24 am
Hello.
ESP IDF , Master (or 4.4) , ESP32 (ESP32-PICO-D4) .
Periodicaly (i'm do not know cause) 'printf' is no output to defaut uart, if non-constant format, i.e :
---
printf ("test\n"); // output: test
printf ("number %d\n", 1); // no output
char * line = "line\n";
printf (line); // no output
---
but,
---
fprintf (stdout, "number %d\n", 1); // output: number 1
---
'printf(CONSTANT)' is have output, maybe, because gcc replace 'printf(CONSTANT)' to 'puts(CONSTANT)'.
=================
I'm build tcp server in project, and connect to it from terminal on PC.
All ommited 'printf' output i see in terminal.
How to prevent redirect 'printf' output?
ESP IDF , Master (or 4.4) , ESP32 (ESP32-PICO-D4) .
Periodicaly (i'm do not know cause) 'printf' is no output to defaut uart, if non-constant format, i.e :
---
printf ("test\n"); // output: test
printf ("number %d\n", 1); // no output
char * line = "line\n";
printf (line); // no output
---
but,
---
fprintf (stdout, "number %d\n", 1); // output: number 1
---
'printf(CONSTANT)' is have output, maybe, because gcc replace 'printf(CONSTANT)' to 'puts(CONSTANT)'.
=================
I'm build tcp server in project, and connect to it from terminal on PC.
All ommited 'printf' output i see in terminal.
How to prevent redirect 'printf' output?