<?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>topic Re: printf function on the DEMOQE128 board. in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140150#M2278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I gave this one a further check as well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Basically to get printf redirected to UART:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; - Make sure CONSOLE_IO_SUPPORT is set to 0 in exceptions.c&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp;Add the file {Install}\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Src\uart_console_io_cf.c to&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; your project&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Edit the file uart_console_io_cf.c&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Remove line 90 from this file:&lt;/DIV&gt;&lt;DIV&gt;#pragma overload int __write_console(__file_handle handle, unsigned char * buffer, size_t * count, __std(__ref_con) ref_con);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Add an implementation of InitializeUART, ReadUARTN and WriteUARTN. I attached a sample&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;implementation that worked on my DEMOQE128 board. You may have to adjust it to your own&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;hardware. It is just an example.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Make sure "Enable Terminal printf support" is unchecked in the debugger Debug Options.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Attached file defined a baud rate of 19200 for UART. To change Baud Rate modify UART_CONSOLE_BAUD_RATE&amp;nbsp; in uart_console_config.h&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Enjoy &lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 21:39:45 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2007-07-18T21:39:45Z</dc:date>
    <item>
      <title>printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140146#M2274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have a DEMOQE128 board with the 32-bit MCF51QE128 processor and am trying to use the printf function to send data out&amp;nbsp;the serial port.&amp;nbsp; The code compiles and builds fine, but nothing comes out the serial port when&amp;nbsp;the function&amp;nbsp;is called.&amp;nbsp; All jumpers are in their proper positions.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I can send other data using the &amp;nbsp;AS1_SendChar function however while using the printf function nothing is transmitted.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I step through the code it appears to be doing the printf function with the data I have in the function, but I never see anything on the serial port.&amp;nbsp;&amp;nbsp;The transmitter is&amp;nbsp;assigned to PTB1.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm sure this is something very simple I'm overlooking.&lt;/DIV&gt;&lt;DIV&gt;Any help is greatly appreciated.&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 10:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140146#M2274</guid>
      <dc:creator>Bugman2960</dc:creator>
      <dc:date>2007-07-16T10:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140147#M2275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I assume you are using CodeWarrior for MCU V6.0, you are debugging on a real hardware board and you want to see the output of the&amp;nbsp;printf in the debugger Terminal window.&lt;/DIV&gt;&lt;DIV&gt;I also assume you have created your project using the project wizard.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Am I right?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In order to activate console I/O on a MCFQE128 you need to:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Edit the file exceptions.c from your project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Change&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define CONSOLE_IO_SUPPORT&amp;nbsp;&amp;nbsp;0&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define CONSOLE_IO_SUPPORT&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp; - Add the file {Install}\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Src\console_io_cf.c&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to your project&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Rebuild your project&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Start the debugger&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Select "CFMultiLinkCyclonePro" -&amp;gt; "Setup" or "Softec-MCF51" -&amp;gt; "Setup" depending how&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you are connected to the board.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;- Switch to the "Debug Options" tab&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Check "Enable terminal printf support"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Click OK to close the dialog.&lt;/DIV&gt;&lt;DIV&gt;You may have to restart the debugger to activate the change.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;That should do it.I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 17:40:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140147#M2275</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-16T17:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140148#M2276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;CrasyCat,&lt;/DIV&gt;&lt;DIV&gt;Thank you for the information.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You are absolutely correct with all your assumptions.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I made all the changes you suggested and enabled the printf support in the debugger however it still does not send anything out of the serial port.&amp;nbsp; It compiles fine but gives me 103 warnings about overlap violations.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Do you have any other suggestions?&lt;/DIV&gt;&lt;DIV&gt;See the attached screenshot of the project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you again.&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>Wed, 18 Jul 2007 10:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140148#M2276</guid>
      <dc:creator>Bugman2960</dc:creator>
      <dc:date>2007-07-18T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140149#M2277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;OK, then at least one of my assumptions was wrong &lt;IMG alt=":smileysurprised:" class="emoticon emoticon-smileysurprised" id="smileysurprised" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-surprised.gif" title="Smiley Surprised" /&gt;.&lt;/DIV&gt;&lt;DIV&gt;You are not looking to redirect stdout to the Console window, but to the UART.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In that case, you have to use the file&lt;/DIV&gt;&lt;DIV&gt;{Install}\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Src\uart_console_io_cf.c instead of&lt;/DIV&gt;&lt;DIV&gt;{Install}\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Src\console_io_cf.c in your project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You then need to provide implementation for the low level functions InitializeUART, ReadUARTN and WriteUARTN.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;InitializeUART is used to initialize (configure) the SCI.&lt;/DIV&gt;&lt;DIV&gt;ReadUARTN is sued to read n characters from the SCI port.&lt;/DIV&gt;&lt;DIV&gt;WriteUARTN is used to send n characters through the SCI.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Prototypes for these functions are available in&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {Install}\ColdFire_Support\msl\MSL_C\MSL_Common_Embedded\Include\uart.h&lt;/DIV&gt;&lt;DIV&gt;I did not find a sample implementation for them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140149#M2277</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-18T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140150#M2278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I gave this one a further check as well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Basically to get printf redirected to UART:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; - Make sure CONSOLE_IO_SUPPORT is set to 0 in exceptions.c&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp;Add the file {Install}\ColdFire_Support\msl\MSL_C\MSL_ColdFire\Src\uart_console_io_cf.c to&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; your project&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Edit the file uart_console_io_cf.c&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Remove line 90 from this file:&lt;/DIV&gt;&lt;DIV&gt;#pragma overload int __write_console(__file_handle handle, unsigned char * buffer, size_t * count, __std(__ref_con) ref_con);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Add an implementation of InitializeUART, ReadUARTN and WriteUARTN. I attached a sample&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;implementation that worked on my DEMOQE128 board. You may have to adjust it to your own&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;hardware. It is just an example.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Make sure "Enable Terminal printf support" is unchecked in the debugger Debug Options.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Attached file defined a baud rate of 19200 for UART. To change Baud Rate modify UART_CONSOLE_BAUD_RATE&amp;nbsp; in uart_console_config.h&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Enjoy &lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 21:39:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140150#M2278</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-18T21:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140151#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;CrasyCat,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;DIV&gt;After&amp;nbsp;making your changes it seems to be working fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Although the timing is a little off... no big deal.&lt;/DIV&gt;&lt;DIV&gt;It's running off the internal oscilator.&lt;/DIV&gt;&lt;DIV&gt;I'm going to add the external XTAL to get it on a real baud rate freq. then tweak the regs to get it right on.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again.&lt;/DIV&gt;&lt;DIV&gt;Kevin&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140151#M2279</guid>
      <dc:creator>Bugman2960</dc:creator>
      <dc:date>2007-07-19T11:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140152#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am glad I could help here.&lt;/DIV&gt;&lt;DIV&gt;Keep in mind that the file I have delivered is only a sample implementation. Depending on the hardware you are using you may need to adjust HW configuration.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Looks like you need to adjust clock settings in your case..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 13:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140152#M2280</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-19T13:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140153#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I too have the DEMOQE128.&amp;nbsp; I used your procedure to get printf working but its output is very very slow...&amp;nbsp; I estimate about 8 char per second to the Terminal screen.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am running a modified Accelerometer demo using the SCI inits.&amp;nbsp;&amp;nbsp; It writes fine to the PEMICRO grapher utility but will not work with the PEMICRO Terminal utility.&amp;nbsp; I thought this might be faster than the Terminal window in Coldfire Debug.&amp;nbsp;&amp;nbsp;&amp;nbsp; The PEMICRO terminal window will print out stuff sent with the SendMsg() function but not the printf().&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I tried to increase the baud&amp;nbsp;argument used in the &amp;nbsp;InitSCI(baud) function.&amp;nbsp; It did not help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also noticed that the printf() inhibits the PEMICRO&amp;nbsp;Grapher while its printing to Terminal Screen.&amp;nbsp; This probably is normal behavior when two users are requesting SCI interrupt time.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any thought on how to speed things up?&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;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 05:25:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140153#M2281</guid>
      <dc:creator>vamfun</dc:creator>
      <dc:date>2008-04-30T05:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140154#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Crasycat, I have a similar question.&amp;nbsp; I'm using:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;CodeWarrior 10.0 Beta 3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;DEMOQE128 board&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;and am building to the MCF51QE128 internal flash target.&amp;nbsp; I've written a simple C++ application that sends some output using "cout", e.g.&amp;nbsp; cout &amp;lt;&amp;lt; variable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;First of all, I'd like to be able to to use cout to write to the CW console window, even if there's no DEMOQE128 board connected, but I haven't found yet how to invoke the full chip simulation in the debugger (something that was present in CW 5 and 6).&amp;nbsp; Do you know if CW 10.0 Beta 3 supports simulation?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Second, I haven't found yet how to get a successful build with "cout" in the source.&amp;nbsp; I do have -define CONSOLE_IO_SUPPORT=1 in the compile flags.&amp;nbsp; Here's what goes wrong:&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;1.&amp;nbsp; If I use #include &amp;lt;iostream&amp;gt; in my source, I get a failure, with "undefined identifier &lt;U&gt;cout&lt;/U&gt;" in the compile.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;2.&amp;nbsp; If I use &amp;lt;iostream.h&amp;gt; instead, I get these 3 symbols undefined in the link:&lt;/FONT&gt; &lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;InitializeUART, ReadUARTN, WriteUARTN&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;There are 3 files in C:\Program Files\Freescale\CW MCU v10.0\MCU_10.0\ColdFire_Support\ewl\EWL_C\src\coldfire:&amp;nbsp; console_io_cf.c, sci_console_io_cf.c, and uart_console_io_cf.c, but I don't see how they would help.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;Am I missing additional includes in my build?&amp;nbsp; Additional sources?&amp;nbsp; Help would be appreciated.&amp;nbsp; Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 15:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140154#M2282</guid>
      <dc:creator>wdfarmer1</dc:creator>
      <dc:date>2010-03-19T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140155#M2283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow-up:&amp;nbsp; If I use &lt;FONT face="courier new,courier"&gt;#include &amp;lt;iostream&amp;gt;&lt;/FONT&gt; but add the statement&amp;nbsp; &lt;FONT face="courier new,courier"&gt;using namespace std;&lt;/FONT&gt; &lt;FONT face="arial,helvetica,sans-serif"&gt;"cout" is recognized by the compiler, but then I get the same 3 symbols undefined in the link:&amp;nbsp; InitializeUART, ReadUARTN, and WriteUARTN.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, my objective is to get "cout" output to the console window in the debugger, not to the actual UART hardware.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Mar 2010 07:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140155#M2283</guid>
      <dc:creator>wdfarmer1</dc:creator>
      <dc:date>2010-03-20T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140156#M2284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2nd follow-up:&amp;nbsp; Adding a copy of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Freescale\CW MCU v10.0\MCU_10.0\ColdFire_Support\ewl\EWL_C\src\coldfire:&amp;nbsp; console_io_cf.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to my build fixed the message about the 3 underined symbols, and got me a good build.&amp;nbsp; Whether it will succeed in sending "cout" output to the console remains to be seen; I'm working on another unrelated problem now, which I'll post under a different heading elsewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Mar 2010 18:05:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140156#M2284</guid>
      <dc:creator>wdfarmer1</dc:creator>
      <dc:date>2010-03-20T18:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: printf function on the DEMOQE128 board.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140157#M2285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&amp;nbsp; I've got console_io_cf.c included in my build, and it issues a Trap 14 when it wants to perform console output.&amp;nbsp; However, immediately after it does so, CW 10.0 beta 3 reports that the USB interface reports "Not ready", and the debug session halts.&amp;nbsp; What do I need to change in Processor Expert and/or the Debug Configuration to handle the Trap 14?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Processor Expert's Trap 14 is currently disabled; if enabled, it would generate an exception vector entry for that trap... but where should that vector&amp;nbsp;point?&amp;nbsp; Is there an exception handler for Trap 14 that I'm not including in my build?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Debug Environment currently has both "Terminate on Trap 14" and "User Application Handles Trap 14" checked.&amp;nbsp; Making changes in either of both of those doesn't currently help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 16:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/printf-function-on-the-DEMOQE128-board/m-p/140157#M2285</guid>
      <dc:creator>wdfarmer1</dc:creator>
      <dc:date>2010-03-22T16:22:55Z</dc:date>
    </item>
  </channel>
</rss>

