<?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: MCF5282: printf from SDRAM does not work in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214248#M10723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;printf does not work from SDRAM when cache is enabled for data as confirmed by freescale:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;SVC&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;----- Original Message ----- &lt;DIV&gt;From: "Freescale Support" &amp;lt;&lt;A href="mailto:support@freescale.com" rel="nofollow" target="_blank"&gt;support@freescale.com&lt;/A&gt;&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Sent: Monday, January 26, 2009 10:57 AM&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&amp;gt;&lt;BR /&gt;&amp;gt; In reply to your Service Request SR 1-539291927 (see details below):&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Yes, in this case printf function does not work well when cache is enabled for data.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 05:44:32 GMT</pubDate>
    <dc:creator>SVC2</dc:creator>
    <dc:date>2009-02-03T05:44:32Z</dc:date>
    <item>
      <title>MCF5282: printf from SDRAM does not work</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214244#M10719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;Have a small program that runs continuously and writes a string in UART.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;When I run the program from internal SRAM, there is no problem. I can see the messages in my HyperTerminal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;Nevertheless, when I run the same program from external SDRAM, only the first 2 characters are seen in the HyperTerminal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;If I trace the program through the uart writing functions (one character at a time), all characters are echoed in HyperTerminal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;Any hints?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;S.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 04:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214244#M10719</guid>
      <dc:creator>SVC2</dc:creator>
      <dc:date>2009-01-08T04:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5282: printf from SDRAM does not work</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214245#M10720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;This case is&amp;nbsp;the typical real-time issue.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;UART without FIFO can simultaneously hold only two Tx and (independingly)&amp;nbsp;Rx&amp;nbsp;characters: in the shift register and in the buffer register.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any executable code runs significantly faster from SRAM, than from the external SDRAM. Some your function misses the Rx/Tx event because of different&amp;nbsp;&amp;nbsp;speed of execution.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Solutions:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; - Reduce baud rate and add extra stop bit.&lt;/DIV&gt;&amp;nbsp; - Try use printf() and scanf()&amp;nbsp;functions.&amp;nbsp;They have the software buffering by the default.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Write more fast ISR.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 15:35:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214245#M10720</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-01-08T15:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5282: printf from SDRAM does not work</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214246#M10721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, same problem here,&lt;/P&gt;&lt;P&gt;Adding an extra stop bit and lowering the baud rate&amp;nbsp;partially solved the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now printf("HELLO WORLD") outputs&amp;nbsp;&amp;nbsp;HHEEELLLLOOO&amp;nbsp; WWWOORRLLLDD on&amp;nbsp; the Hyper Terminal&lt;/P&gt;&lt;P&gt;at 2400bps, 8 bits, no par, 2 stops, no control.&lt;/P&gt;&lt;DIV&gt;FRancois.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 01:32:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214246#M10721</guid>
      <dc:creator>francois_boucha</dc:creator>
      <dc:date>2009-01-11T01:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5282: printf from SDRAM does not work</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214247#M10722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;It seems, that your code doesn't erase the Rx/Tx event (interrupt request?). Thus, processing the same event is repeated&amp;nbsp;until the next character replaces the old character in the UART registers.&lt;/DIV&gt;&lt;DIV&gt;Also verify, if local echo is disabled in HyperTerminal.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 04:12:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214247#M10722</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-01-11T04:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5282: printf from SDRAM does not work</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214248#M10723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;printf does not work from SDRAM when cache is enabled for data as confirmed by freescale:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;SVC&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;----- Original Message ----- &lt;DIV&gt;From: "Freescale Support" &amp;lt;&lt;A href="mailto:support@freescale.com" rel="nofollow" target="_blank"&gt;support@freescale.com&lt;/A&gt;&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Sent: Monday, January 26, 2009 10:57 AM&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&amp;gt;&lt;BR /&gt;&amp;gt; In reply to your Service Request SR 1-539291927 (see details below):&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Yes, in this case printf function does not work well when cache is enabled for data.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 05:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5282-printf-from-SDRAM-does-not-work/m-p/214248#M10723</guid>
      <dc:creator>SVC2</dc:creator>
      <dc:date>2009-02-03T05:44:32Z</dc:date>
    </item>
  </channel>
</rss>

