<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Printf and Tiny library</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201742#M9326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I undestand your solution, but it isn't so fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise It's a problem that I want to understand to know better the MSL library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2009 18:46:55 GMT</pubDate>
    <dc:creator>LPs1978</dc:creator>
    <dc:date>2009-07-22T18:46:55Z</dc:date>
    <item>
      <title>Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201736#M9320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm building a project with tiny library C_4i_CF_SZ.a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use printf to write on my LCD display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My routines are ok and tested. What I want to do is to redirect the printf to my proprietary function that use my GUI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As usual I tryed to redirect the stdout-&amp;gt;write_proc to my function Write_Display.&lt;/P&gt;&lt;P&gt;I debugged my code and I'm sure that the correct address is filled in the right position of stdout structure, but when I use printf and fflush functions my proprietary function is not colled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is my error??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 14:11:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201736#M9320</guid>
      <dc:creator>LPs1978</dc:creator>
      <dc:date>2009-07-22T14:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201737#M9321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you&amp;nbsp;tested the low level by sending to the same custom file descriptor&amp;nbsp;using fprintf() ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 14:46:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201737#M9321</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-07-22T14:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201738#M9322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! I tested the fprintf function with stdout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked also that the write_proc is the correct one when teh fprintf is executed and all is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm desperate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 15:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201738#M9322</guid>
      <dc:creator>LPs1978</dc:creator>
      <dc:date>2009-07-22T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201739#M9323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To better understand the issue, could you send using fprintf() to another (non-stdout and non-LCD)&amp;nbsp;file descriptor? Say, to TCP socket?&lt;/P&gt;&lt;P&gt;Generally, if everything is seems correct, but isn't working, the direction of the search is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 15:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201739#M9323</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-07-22T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201740#M9324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing that I found is that always the printf calls WriteUARTN function. I think that is this the problem, that cause that my chars are not placed into the stdout structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Onother strange thing is that all stdout structure seems not initialize (eg. stdout-&amp;gt;buffer_ptr = 0x0000)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 15:36:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201740#M9324</guid>
      <dc:creator>LPs1978</dc:creator>
      <dc:date>2009-07-22T15:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201741#M9325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also use &lt;STRONG&gt;&lt;SPAN&gt;sprintf&lt;/SPAN&gt;&lt;/STRONG&gt; to print to a string and then copy the data in the string to the LCD using some LCD driving routines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is how I do it anyway...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 17:42:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201741#M9325</guid>
      <dc:creator>vier_kuifjes</dc:creator>
      <dc:date>2009-07-22T17:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201742#M9326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I undestand your solution, but it isn't so fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise It's a problem that I want to understand to know better the MSL library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 18:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201742#M9326</guid>
      <dc:creator>LPs1978</dc:creator>
      <dc:date>2009-07-22T18:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201743#M9327</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;If you want, you can just define your own printf() which overrides the default putchar routine, as described here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CWCFCOMM&amp;amp;message.id=2508&amp;amp;query.id=4632#M2508" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CWCFCOMM&amp;amp;message.id=2508&amp;amp;query.id=4632#M2508&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can change your putchar() routine to write to your LCD, and use printf() normally to access it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's also some background on how the whole printf path works in that thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 23:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201743#M9327</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2009-07-22T23:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Printf and Tiny library</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201744#M9328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich, buts I know the way you explained to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the same some time ago, using the entire printf_tiny_io.c in my progect linked before the MSL library with my modification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to understand is why, with tiny support, I cannot use the stdout with printf. Probably I have to configure something in the stdout structure to make it able to work....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 14:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Printf-and-Tiny-library/m-p/201744#M9328</guid>
      <dc:creator>LPs1978</dc:creator>
      <dc:date>2009-07-23T14:18:34Z</dc:date>
    </item>
  </channel>
</rss>

