How to set CONSOLE_IO_SUPPORT when I am using "Device Initialization" Generate Code

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

How to set CONSOLE_IO_SUPPORT when I am using "Device Initialization" Generate Code

1,918件の閲覧回数
oldmee
Contributor I
hi 
I am a new user of CW7.0 and coldfire MCU. Currently, I try to use the CW(Latest version) for coldfire ( I am using M52223demo). After let "Device Initialization" Generate some Code such
as ADC and QSPI ect. I would like  add printf function into the project.
I did try to add console_io_cf.c to the project,  but it won't work.
 
help help !
 
thanks
ラベル(1)
タグ(1)
0 件の賞賛
2 返答(返信)

844件の閲覧回数
Ashovav13
Contributor I

Hi,

 

I have the same kind of issue. When creating my Bareboard project on MCU51QU I checked "io printf console support".

I get a linker error when using printf in my code :

 

C:/Program Files/Freescale/CW MCU v10.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "InitializeUART"

>Referenced from "__init_uart_console" in

C:/Program Files/Freescale/CW MCU v10.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "WriteUARTN"

>Referenced from "__write_console" in

C:/Program Files/Freescale/CW MCU v10.1/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Link failed.

 

I'll be happy to get feedback if anyone gets an idea ...

 

:smileyhappy:

0 件の賞賛

844件の閲覧回数
mohammedzakari1
Contributor I

HI,

I am facing the same issue, did anyone got the solution for the same please?

I am using CW 5.9.0 , powerPC platform. Below are the error... Need help

Link Error : undefined: 'InitializeUART'
Referenced from '__init_uart_console' in MSL_C.PPCEABI.bare.E.UC.a

Link Error : undefined: 'ReadUARTN'
Referenced from '__read_console' in MSL_C.PPCEABI.bare.E.UC.a

Link Error : undefined: 'WriteUARTN'
Referenced from '__write_console' in MSL_C.PPCEABI.bare.E.UC.a

Appreciated the help.

Thanks,

-Mohammed

0 件の賞賛