I'm coming up to speed with the AVR, MPLAB-X and the xc8 compiler package and I'm struggling with printf( ). I'm using an Arduino Uno along with the Snap debugger module. So far things are sweet. I've read in three places that printf( ) formats a character string and that a helper function putch( ) in the project folder is needed to output characters in the string, one at a time.
To make a start, I followed the references to write an init function that configures the usart for 8 bit, no parity, one stop bit at 9600 bps. I also followed references to write putch( ) and I can use the functions together to transmit individual characters... so I can see that the usart is working.
I've noticed that the classic hello world program pretty much compiles without issue, even without a putch( ) function provided. So, it appears that the trick is how to tell the compiler to actually use the putch( ) function that I provided... Please, I'm wondering what the secret handshake is.
Thanks in advance;