<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S12 / MagniV MicrocontrollersのトピックRe: Link Error   : L1822: Symbol TERMIO_PutChar .... undefined</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130450#M1362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;The problem is that the linker is looking to the TERMIO_PutChar function to print the characters, but you have not defined that function.&lt;BR /&gt;&lt;BR /&gt;I would suggest to use the sprintf function, that allows to print into a string, and then use whatever function you define to print that string into a serial port, LCD, wireless port, etc.&lt;BR /&gt;&lt;BR /&gt;For example,&lt;BR /&gt;&lt;BR /&gt;sprintf(c_PWD,"#x",NumDec);&lt;BR /&gt;Sent_to_Serial_Port(c_PWD);&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2006 23:02:10 GMT</pubDate>
    <dc:creator>alex_spotw</dc:creator>
    <dc:date>2006-03-28T23:02:10Z</dc:date>
    <item>
      <title>Link Error   : L1822: Symbol TERMIO_PutChar .... undefined</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130449#M1361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I am using the command&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;printf(c_PWD,"#x",NumDec);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;to convert a Decimal for Hexadecimal and when compiling an error below it appears:&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN&gt;Link Error&amp;nbsp;&amp;nbsp; : L1822: Symbol TERMIO_PutChar in file ..\CodeWarrior CW12_V3.1\lib\HC12c\lib\ansibi.lib is undefined&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using the mc9s12ne64 and CW3.1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I must make?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 22:28:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130449#M1361</guid>
      <dc:creator>BoloMestre</dc:creator>
      <dc:date>2006-03-28T22:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error   : L1822: Symbol TERMIO_PutChar .... undefined</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130450#M1362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;The problem is that the linker is looking to the TERMIO_PutChar function to print the characters, but you have not defined that function.&lt;BR /&gt;&lt;BR /&gt;I would suggest to use the sprintf function, that allows to print into a string, and then use whatever function you define to print that string into a serial port, LCD, wireless port, etc.&lt;BR /&gt;&lt;BR /&gt;For example,&lt;BR /&gt;&lt;BR /&gt;sprintf(c_PWD,"#x",NumDec);&lt;BR /&gt;Sent_to_Serial_Port(c_PWD);&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 23:02:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130450#M1362</guid>
      <dc:creator>alex_spotw</dc:creator>
      <dc:date>2006-03-28T23:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error   : L1822: Symbol TERMIO_PutChar .... undefined</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130451#M1363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Where are you trying to write to?&lt;BR /&gt;Do you want to write to the&amp;nbsp;target SCI port?&lt;/P&gt;&lt;P&gt;In that case just add the file {Install}\lib\hc12c\src\termio.c to your project.&lt;/P&gt;&lt;P&gt;If you want to redirect stdout anywhere else, you will have to provide an implementation of the low level write function in your own termio.c.&lt;/P&gt;&lt;P&gt;I hope this helps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 17:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130451#M1363</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-03-29T17:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error   : L1822: Symbol TERMIO_PutChar .... undefined</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130452#M1364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Been&amp;nbsp; wading through various posts about&amp;nbsp;printf, PRINTF (for the simulator/debugger)&amp;nbsp;and termio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup:&lt;/P&gt;&lt;P&gt;CW 5.9.0&lt;/P&gt;&lt;P&gt;PE 2.98 for HCS12SX&lt;/P&gt;&lt;P&gt;MCU&lt;IMG alt=":smileyfrustrated:" class="emoticon emoticon-smileyfrustrated" id="smileyfrustrated" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif" title="Smiley Frustrated" /&gt;12XDP512&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a softek kit for my MCU. i use SCI0 to connect to a peripheral device. The SCI0 code is autogenerated by PE.&lt;/P&gt;&lt;P&gt;While debugging,&amp;nbsp; i needed to see what's arriving at my SCI0. I therefore use the Terminal Component as a Virtual SCI.All good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I aslo need to call printf at various points in my code (for debugging only) and see the output on&amp;nbsp;&amp;nbsp; Terminal. So i add the termio.c mentined in the previous post. Works fine, the output appears on the same Terminal used above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;1.I did not modify termio.c so it's apparently using SCI0. Does this mean all printfs are also redirected to the SCI0 uart as well? I don't want this to happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.If yes, then i need to change the&amp;nbsp;&amp;nbsp;SCI_ADDR in&amp;nbsp; termio.c to point to another (unused) uart. Where can i find the address of my uarts? The current defintion is&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;#define SCI_ADDR 0x00c8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.Do i need to add a new Terminal component to see the printfs in case point 1 is true?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 11:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130452#M1364</guid>
      <dc:creator>itisravi</dc:creator>
      <dc:date>2010-04-09T11:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error   : L1822: Symbol TERMIO_PutChar .... undefined</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130453#M1365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Think i made a mistake. The Terminal component seems to work only in simulation mode! Not while debuggin on the&amp;nbsp;softked board. How do i see what's being received on my SCI0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130453#M1365</guid>
      <dc:creator>itisravi</dc:creator>
      <dc:date>2010-04-09T13:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error : L1822: Symbol TERMIO_PutChar .... undefined</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130454#M1366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are debugging on real hardware you need to connect your board SCI0 connector with one of the PC serial port using a RS232 cable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Once this is done, you&amp;nbsp;need to&amp;nbsp;configure the Terminal.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Click right inside of the terminal window&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Select "Configure Connections ..."&lt;/P&gt;&lt;P&gt;&amp;nbsp; - In the "Configure Terminal Connection" dialog set "Default Configuration" to "Serial Port"&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Set&amp;nbsp;"Serial Port" and "Baud Rate" according&amp;nbsp;to your configuration (in the provided termio.c, baud rate is configured&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to 9600 Baud.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To go back to our initial question, yes printf will be sent to terminal using SCI0.&lt;/P&gt;&lt;P&gt;If you want to use an alternate serial port, you need to use another serial port on your chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the microcontroller reference manual to find our address of the other serial port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you intend to use another serial port for printf, make sure to connect this SCI with your Host PC&amp;nbsp;serial port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 14:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130454#M1366</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-04-09T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error : L1822: Symbol TERMIO_PutChar .... undefined</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130455#M1367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"If you intend to use another serial port for printf, make sure to connect this SCI with your Host PC&amp;nbsp;serial port."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, that seems to do the trick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 15:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Link-Error-L1822-Symbol-TERMIO-PutChar-undefined/m-p/130455#M1367</guid>
      <dc:creator>itisravi</dc:creator>
      <dc:date>2010-04-09T15:44:50Z</dc:date>
    </item>
  </channel>
</rss>

