Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 631
Firestarter without a lighter Avatar asked Sep 11 '25 22:09

Firestarter without a lighter


1 Answers

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.

like image 176
Mike Avatar answered Sep 16 '25 10:09

Mike