Ken Sanchez

9S08QG8 CWv10 eclipse printf issue

Discussion created by Ken Sanchez on Jan 30, 2011
Latest reply on Nov 2, 2012 by Jeff Sylvester

I'm having trouble getting printf to work on a simple 9S08QG8 program.  Using CW v10 on Windows Vista machine.  I loaded Ansiis.lib into the library.  It doesn't seem to be recognizing it.  Where is printf located in the new version of CW?  Here's my console build output.

 

 

**** Build of configuration MC9S08QG8 for project S08QG8demo ****
C:\Program Files (x86)\Freescale\CW MCU v10.0\gnu\bin\make all 
'Building target: S08QG8demo.abs'
'Invoking: Linker'
"C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/prog/linker" -ArgFile"S08QG8demo.args" -O"S08QG8demo.abs" -Add("./Sources/Events.obj" "./Sources/ProcessorExpert.obj" "./Project_Settings/Startup_Code/start08.obj" "./Generated_Code/Bit1.obj" "./Generated_Code/Cpu.obj" "./Generated_Code/IO_Map.obj" "./Generated_Code/Vectors.obj" "C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib")
C:/Users/Sandman/workspace/S08QG8demo/Project_Settings/Linker_Files/ProcessorExpert.prm
Command Line: '-ArgFile"S08QG8demo.args" -O"S08QG8demo.abs" -Add("./Sources/Events.obj" "./Sources/ProcessorExpert.obj" "./Project_Settings/Startup_Code/start08.obj" "./Generated_Code/Bit1.obj" "./Generated_Code/Cpu.obj" "./Generated_Code/IO_Map.obj" "./Generated_Code/Vectors.obj" "C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib")'
Linking C:/Users/Sandman/workspace/S08QG8demo/Project_Settings/Linker_Files/ProcessorExpert.prm
Reading file './Sources/Events.obj'
Reading file './Sources/ProcessorExpert.obj'
Reading file './Project_Settings/Startup_Code/start08.obj'
Reading file './Generated_Code/Bit1.obj'
Reading file './Generated_Code/Cpu.obj'
Reading file './Generated_Code/IO_Map.obj'
Reading file './Generated_Code/Vectors.obj'
Reading file 'C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib'
ERROR L1822: Symbol TERMIO_PutChar in file C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib\ansiis.lib is undefined
Generating MAP file 'C:\Users\Sandman\workspace\S08QG8demo\MC9S08QG8\S08QG8demo.map'
SmartLinker: *** 1 error(s), 0 warning(s), 0 information message(s) ***
*** command line: '-ArgFile"S08QG8demo.args" -O"S08QG8demo.abs" -Add("./Sources/Events.obj" "./Sources/ProcessorExpert.obj" "./Project_Settings/Startup_Code/start08.obj" "./Generated_Code/Bit1.obj" "./Generated_Code/Cpu.obj" "./Generated_Code/IO_Map.obj" "./Generated_Code/Vectors.obj" "C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib")' ***
SmartLinker: *** Error occurred while processing! ***
C:\Program Files (x86)\Freescale\CW MCU v10.0\gnu\bin\make: *** [S08QG8demo.abs] Error 1

**** Build of configuration MC9S08QG8 for project S08QG8demo ****
C:\Program Files (x86)\Freescale\CW MCU v10.0\gnu\bin\make all 'Building target: S08QG8demo.abs''Invoking: Linker'"C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/prog/linker" -ArgFile"S08QG8demo.args" -O"S08QG8demo.abs" -Add("./Sources/Events.obj" "./Sources/ProcessorExpert.obj" "./Project_Settings/Startup_Code/start08.obj" "./Generated_Code/Bit1.obj" "./Generated_Code/Cpu.obj" "./Generated_Code/IO_Map.obj" "./Generated_Code/Vectors.obj" "C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib")C:/Users/Sandman/workspace/S08QG8demo/Project_Settings/Linker_Files/ProcessorExpert.prmCommand Line: '-ArgFile"S08QG8demo.args" -O"S08QG8demo.abs" -Add("./Sources/Events.obj" "./Sources/ProcessorExpert.obj" "./Project_Settings/Startup_Code/start08.obj" "./Generated_Code/Bit1.obj" "./Generated_Code/Cpu.obj" "./Generated_Code/IO_Map.obj" "./Generated_Code/Vectors.obj" "C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib")'Linking C:/Users/Sandman/workspace/S08QG8demo/Project_Settings/Linker_Files/ProcessorExpert.prmReading file './Sources/Events.obj'Reading file './Sources/ProcessorExpert.obj'Reading file './Project_Settings/Startup_Code/start08.obj'Reading file './Generated_Code/Bit1.obj'Reading file './Generated_Code/Cpu.obj'Reading file './Generated_Code/IO_Map.obj'Reading file './Generated_Code/Vectors.obj'Reading file 'C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib'ERROR L1822: Symbol TERMIO_PutChar in file C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib\ansiis.lib is undefinedGenerating MAP file 'C:\Users\Sandman\workspace\S08QG8demo\MC9S08QG8\S08QG8demo.map'SmartLinker: *** 1 error(s), 0 warning(s), 0 information message(s) ****** command line: '-ArgFile"S08QG8demo.args" -O"S08QG8demo.abs" -Add("./Sources/Events.obj" "./Sources/ProcessorExpert.obj" "./Project_Settings/Startup_Code/start08.obj" "./Generated_Code/Bit1.obj" "./Generated_Code/Cpu.obj" "./Generated_Code/IO_Map.obj" "./Generated_Code/Vectors.obj" "C:\Program Files (x86)\Freescale\CW MCU v10.0\eclipse\../MCU/lib/hc08c/lib/ansiis.lib")' ***SmartLinker: *** Error occurred while processing! ***C:\Program Files (x86)\Freescale\CW MCU v10.0\gnu\bin\make: *** [S08QG8demo.abs] Error 1

Outcomes