<?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 on consol in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567625#M18952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc1857 on Thu Jan 03 03:35:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;platform is Window XP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is printf utility not supported on LPCXpresso v4.3.0?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:24:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:24:47Z</dc:date>
    <item>
      <title>printf on consol</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567621#M18948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc1857 on Thu Jan 03 02:19:30 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have used LPCXpresso v4.3.0 IDE and for debugging i have use RedProbe+ jtag debugger.In project i have enabled the Semihosting option.when debug season start "Semihosting enabled"&amp;nbsp; briefly displayed in the IDE status bar (bottom left of window), as the image load to the target completes. but "printf" not display output on console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so how to enable printf on console?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567621#M18948</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: printf on consol</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567622#M18949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Thu Jan 03 02:37:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Which libraries are you using ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be something like "Newlib (semihost)" or "Redlib (semihost).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I think (never tried this though) this only works when compiling in debug mode (since in release mode you normally have no jtag pod connected).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567622#M18949</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: printf on consol</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567623#M18950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc1857 on Thu Jan 03 02:53:15 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Rob65&lt;/STRONG&gt;&lt;BR /&gt;Which libraries are you using ? &lt;BR /&gt;Rob&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have use "Redlib (semihost).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have compiled the code in debug mode.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567623#M18950</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: printf on consol</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567624#M18951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Jan 03 03:08:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Which host are you using (Windows, Linux, OSX).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, are you aware that LPCXpresso 5 has been released?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567624#M18951</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: printf on consol</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567625#M18952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc1857 on Thu Jan 03 03:35:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;platform is Window XP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is printf utility not supported on LPCXpresso v4.3.0?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567625#M18952</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: printf on consol</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567626#M18953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Jan 03 09:15:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes printf() is supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which MCU are you targeting? And are you trying to create a new semihosting project using the project wizard, or are you trying to modify an existing project to use printf()?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One issue we have seen a couple of time in the past is that some of NXP's examples for "older" MCUs contain an old version of the standard startup code which is not compatible with LPCXpresso 4's semihosting libraries. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the "sticky search thread" at the top of the forum to search for something like "printf not working" should pull up a few such cases:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=2182&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this problem is easily fixed by copying in the startup code from a new project created by the project wizard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, double check that you have actually added the line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to any files that are calling printf().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are still having problems, I suggest that you export your project and attach it to the thread - or as a minimum attach the map file generated by the linker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567626#M18953</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: printf on consol</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567627#M18954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc1857 on Fri Jan 04 02:33:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have use LPC1857(Cortex M3) board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have simply created C project for tageting lpc1857 MCU and then enable semihosting from properties and debug configuration.Also included in "stdio.h" header file in main.c file which call many "printf".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But there is no luck.still it not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached map file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-on-consol/m-p/567627#M18954</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:24:48Z</dc:date>
    </item>
  </channel>
</rss>

