how using printf on codewarrior 10.5 for MPC5604P

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

how using printf on codewarrior 10.5 for MPC5604P

Jump to solution
1,199 Views
lognight
Contributor III

I am using TRK-MPC5604 Toolkit, used the routine MPC5604P-PinToggleStationery_V_1_0-CW210  (Example MPC5604P PinToggleStationery CW210 )on classic codewarrior 2.10, it run ok, But when I used on codewarrior 10.5, it didn’t work. I noticed in codewarrior 2.10,  the uart.c using the library  MSL_C.PPCEABI.bare.VS.UC.a , while in codewarrior 10.5, using thre ewl  library, there is no msl library on codewarrior 10.5. 

How can I using printf on codewarrior 10.5 ?

Labels (1)
1 Solution
807 Views
lognight
Contributor III

I have solved this problem, the UART.h file present in codewarrior installed path  %InstalledPath\CW MCU v10.5\MCU\PA_Support\ewl\EWL_C\include\sys, the uart_console_io.c file present in %InstalledPath\CW MCU v10.5\MCU\PA_Support\ewl\EWL_C\src\sys, and usingExample MPC5604P PinToggleStationery CW210 's uart.c file,

I can use printf  to serial ports and display message on my laptop.

View solution in original post

1 Reply
808 Views
lognight
Contributor III

I have solved this problem, the UART.h file present in codewarrior installed path  %InstalledPath\CW MCU v10.5\MCU\PA_Support\ewl\EWL_C\include\sys, the uart_console_io.c file present in %InstalledPath\CW MCU v10.5\MCU\PA_Support\ewl\EWL_C\src\sys, and usingExample MPC5604P PinToggleStationery CW210 's uart.c file,

I can use printf  to serial ports and display message on my laptop.