how using printf on codewarrior 10.5 for MPC5604P

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how using printf on codewarrior 10.5 for MPC5604P

跳至解决方案
1,255 次查看
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 ?

标签 (1)
1 解答
863 次查看
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.

在原帖中查看解决方案

1 回复
864 次查看
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.