Search code examples
cpicmicrochipmplabpic32

Can't see printf in MPLABX IDE anywhere... Why?


I tried printf in a function, but I don't see anywhere the result in MPLAB X IDE.
Why?
Where can I find the printed result?
I am using PIC32 Curiosity development board and XC32.

int a = 5;
int b = 10;
printf("a = %d\nb = %d\n", a, b);

Any info?


Solution

  • printf always uses the UART as STDOUT. If you use the simulator you could enable UART IO under Project Properties. Know it's your choice if you like to see your printed data in a file or in an output window.