9S08QG8 CWv10 eclipse printf issue

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

9S08QG8 CWv10 eclipse printf issue

1,570 Views
Bubbaconch
Contributor I

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

Labels (1)
0 Kudos
Reply
3 Replies

723 Views
Mickey
Contributor III

hello

    you can reference this file.

Here

0 Kudos
Reply

723 Views
jeff_sylvester
Contributor I

I tried the attached tiny format printf in the attachments but I still get compile error as "CompilerGuru" has said,  I get TERMIO_PutChar in file C:\.ProgramFiles\Freescale\CodeWarrior\lib\hc08c\lib\\ansif.lib is undefined  "Error" Linker Failed

0 Kudos
Reply

723 Views
CompilerGuru
NXP Employee
NXP Employee

Search this forum for "TERMIO_PutChar", this came up in the past.

Basically you have to provide your own TERMIO_PutChar/TERMIO_Init functions, there is a template in a file called termio,c when I remember correctly.

Note that this did not change in the MCU 10 release, while the user interface changed (now eclipse, previous a custom build environment), the libraries and the setup needed is still the same, so the old solutions should help you going.

 

Daniel

0 Kudos
Reply