Question
Configuring printf on Keil
Posted on July 01, 2016 at 14:30
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().http://www.keil.com/support/man/docs/ulink2/ulink2_trace_itm_viewer.htm
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.