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

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

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

1,903 Views
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
Labels (1)
0 Kudos
2 Replies

829 Views
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 Kudos

829 Views
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 Kudos