how using printf on codewarrior 10.5 for MPC5604P

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how using printf on codewarrior 10.5 for MPC5604P

ソリューションへジャンプ
1,257件の閲覧回数
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 解決策
865件の閲覧回数
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 返信
866件の閲覧回数
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.