Solved! Go to Solution.
Hello
Yes in fact as soon as you are building Target "M5282EVB UART Debug", "M5282EVB UART Release", "M5282EVB External ROM" or "M5282EVB Internal ROM", printf is redirected to a UART. Per default it is redirected to UART0.
To switch to another UART, adjust functions in modules io.c or UART_Unity.c.
Note that you need to connect your target UART to a terminal or to a COM port to see terminal output.
I hope this helps.
CrasyCat
Hi CrasyCat,
Yes, Thank s a lot.
Regards,
TTA
Hi,
Thank you. I guess the printf uses one of the UARTs to push the messages to the terminal. One another question is that even when i am using a MCF5282 based custom designed board , i can use the printf library right? Just confirming.
Regards,
TTA
Hello
Yes in fact as soon as you are building Target "M5282EVB UART Debug", "M5282EVB UART Release", "M5282EVB External ROM" or "M5282EVB Internal ROM", printf is redirected to a UART. Per default it is redirected to UART0.
To switch to another UART, adjust functions in modules io.c or UART_Unity.c.
Note that you need to connect your target UART to a terminal or to a COM port to see terminal output.
I hope this helps.
CrasyCat
Hello
Source code for printf can be found in module printf.c located in {Install}\E68K_Support\msl\MSL_C\MSL_Common\Src.
It is included in the MSL library (C_4i_CF_MSL.a) added to the project by the stationery.
CrasyCat