Redirecting printf in codewarrior codewarrior V11.0 to a LCD panel?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Redirecting printf in codewarrior codewarrior V11.0 to a LCD panel?

441 Views
girishkumarvast
Contributor II

Hi,

I am using codewarrior coldfire (MCF 82235) V11.0 compiler and I am new to the compiler. I have a project where i want to format the output and print it on LCD display and want to use printf to do this. But when i enable CONSOLE_IO_SUPPORT, it throws UART related errors. Can anybody guide me with step by step instruction to redirect printf to a console other than UART?

Thanks in advance,

Girish

Labels (1)
0 Kudos
1 Reply

299 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Girish,

The CONSOLE_IO_SUPPORT macro will redirect the printf to the debugger console, this will make use of the IO functions in the console_io_cf.c file. The ENABLE_UART_SUPPORT macro will redirect it to the UART peripheral and makes use of the UART basic driver support in the uart_support.c file.  If you want it to print the information to an LCD then you will have to implement the functionality using the corresponding LCD drivers.


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos