<?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: Using printf() via UART in a bare metal project in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771815#M3395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I did like that. But it was not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that I use hard-coded RCW. And from the Reference Manual it seems that the both possible hard-coded RCWs disable UART pins and configure them as GPIO...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't know how to override RCW via JTAG. I tried using Initialization Script and commands:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;&amp;nbsp;&amp;nbsp; gdb.execute("monitor rcw data set RCW11 0x00038000")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;&amp;nbsp;&amp;nbsp; gdb.execute("monitor rcw apply")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it either doesn't take any effect or return an error: &lt;EM&gt;"monitor rcw apply" failed. [GTA: error writing register].&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 08:48:36 GMT</pubDate>
    <dc:creator>djz</dc:creator>
    <dc:date>2017-12-12T08:48:36Z</dc:date>
    <item>
      <title>Using printf() via UART in a bare metal project</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771813#M3393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have LS1046RDB board.&lt;/P&gt;&lt;P&gt;I installed CodeWarrior, set up bareboard project example and I managed to run the program via GDB and using built-in CMSIS-DAP I run it from RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, &lt;EM&gt;printf()&lt;/EM&gt; uses GDB redirection to CodeWarrior console. I followed &lt;EM&gt;Targeting Manual&lt;/EM&gt; and changed linked library from &lt;EM&gt;simrdimon.specs&lt;/EM&gt; to &lt;EM&gt;uart.specs&lt;/EM&gt;. &lt;BR /&gt;But I don't see any output in a serial terminal on my PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Should I invoke any UART configuration / init function?&lt;/STRONG&gt; &lt;EM&gt;Targeting Manual &lt;/EM&gt;says only about changing the library. Is there any documentation of this UART library? Any API description or whatever?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried invoking &lt;EM&gt;InitializeUART&lt;/EM&gt;, but to no avail and it was guessing. &lt;STRONG&gt;How can one use UART in a bare metal project?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 14:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771813#M3393</guid>
      <dc:creator>djz</dc:creator>
      <dc:date>2017-12-07T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf() via UART in a bare metal project</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771814#M3394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Check your UART terminal setting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;There are no problems if UART is used via MBED under CodeWarrior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;See attached snapshot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 06:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771814#M3394</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-12-12T06:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf() via UART in a bare metal project</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771815#M3395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I did like that. But it was not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that I use hard-coded RCW. And from the Reference Manual it seems that the both possible hard-coded RCWs disable UART pins and configure them as GPIO...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't know how to override RCW via JTAG. I tried using Initialization Script and commands:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;&amp;nbsp;&amp;nbsp; gdb.execute("monitor rcw data set RCW11 0x00038000")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;&amp;nbsp;&amp;nbsp; gdb.execute("monitor rcw apply")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it either doesn't take any effect or return an error: &lt;EM&gt;"monitor rcw apply" failed. [GTA: error writing register].&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 08:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771815#M3395</guid>
      <dc:creator>djz</dc:creator>
      <dc:date>2017-12-12T08:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf() via UART in a bare metal project</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771816#M3396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dariusz,&lt;/P&gt;&lt;P&gt;Does your board work with UART printf? If yes, how do you solve it? I have met the same issue on LS1043ARDB EVK board now. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;&lt;P&gt;Mark Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 13:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771816#M3396</guid>
      <dc:creator>mark_xingchangy</dc:creator>
      <dc:date>2018-07-30T13:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf() via UART in a bare metal project</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771817#M3397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update on LS1043ARDB:&lt;/P&gt;&lt;P&gt;It works after the 2 steps as mentioned above&lt;/P&gt;&lt;P&gt;1. Change project properties as C/C++ Build -&amp;gt; Settings -&amp;gt; Tool Settings -&amp;gt; Cross ARM C Linker -&amp;gt; Miscellaneous as showed by Clipboard02.jpg in Pavel's reply above.&lt;/P&gt;&lt;P&gt;2.Change Target Initialization File in CodeWarrior as the following&lt;/P&gt;&lt;P&gt;# Override RCW using a safe hard-coded RCW option&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;USE_SAFE_RCW = True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;... ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;gdb.execute("monitor rcw data set RCW12 0x00038800")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;gdb.execute("monitor rcw apply")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;B.R.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco,monospace;"&gt;Mark Yang&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:33:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-printf-via-UART-in-a-bare-metal-project/m-p/771817#M3397</guid>
      <dc:creator>mark_xingchangy</dc:creator>
      <dc:date>2018-08-14T18:33:53Z</dc:date>
    </item>
  </channel>
</rss>

