AnsweredAssumed Answered

Configuring printf on Keil

Question asked by Antoine.PM on Jul 1, 2016
Latest reply on Jul 1, 2017 by Bob Boys
Hi,

Clearly I'm not the only one who has this need, but the tutorials I followed didn't work for me .
I want to use printf() in Keil, in order to check if my "DAC to ADC" code works. I tried with Debug (printf) Viewer in Keil, but I guess it could work with any terminal, I'm not picky.
Apparently it has something to do with rewriting fputc() or putchar().
This tuto says to implement the code in the source code, so naively I put it in the main.c, but I guess it's wrong.

If this can help, the goal here is to output a sinewave from the DAC and put it into the ADC. I want to verify the ADC reads it correctly, maybe by printing out values and compare them with the values in the sintable read by the DAC.

Outcomes