<?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 printf of Redlib(semihost) doesn't work in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-of-Redlib-semihost-doesn-t-work/m-p/591224#M29495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rajgonvl on Sun Jun 14 04:53:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi tech-support,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm experimenting semihosted printf functionality on LPC 1343 and facing a trouble. It doesn't display anything on the LPCXpresso console in combination with LPCOpen and Redlib(semihost).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I inserted printf("Toggle!\n"); at the end of the if-clause of TIMER32_0_IRQHandler in timer.c (between line 61 and 62) in periph_timer sample project included in lpcopen_2_05_lpcxpresso_nxp_lpcxpresso_1343. When I choose Newlib(semihost) or Newlibnano(semihost) with Quick Settings, the "Toggle!\n" string appears, but with Redlib(semihost) nothing shows up. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My environment is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDE: LPCXpresso v7.7.2 [Build 379]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Defined symbols:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CR_INTEGER_PRINTF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CR_PRINTF_CHAR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; __CODE_RED&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; __USE_LPCOPEN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CORE_M3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; __REDLIB__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Board: LPCXpresso LPC1343 Rev A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Build Configuration: Debug (Debug build)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Host: Windows7 Professional SP1 32bit on Intel Core i7-4790 @ 3.60GHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Debugger: both LPC-Link and LPC-Link2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Recognized as USB Device with DFU Capabilities with Driver Philips(NXP) 3.12.0.0 (2010/03/11)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:46:24 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:46:24Z</dc:date>
    <item>
      <title>printf of Redlib(semihost) doesn't work</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-of-Redlib-semihost-doesn-t-work/m-p/591224#M29495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rajgonvl on Sun Jun 14 04:53:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi tech-support,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm experimenting semihosted printf functionality on LPC 1343 and facing a trouble. It doesn't display anything on the LPCXpresso console in combination with LPCOpen and Redlib(semihost).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I inserted printf("Toggle!\n"); at the end of the if-clause of TIMER32_0_IRQHandler in timer.c (between line 61 and 62) in periph_timer sample project included in lpcopen_2_05_lpcxpresso_nxp_lpcxpresso_1343. When I choose Newlib(semihost) or Newlibnano(semihost) with Quick Settings, the "Toggle!\n" string appears, but with Redlib(semihost) nothing shows up. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My environment is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDE: LPCXpresso v7.7.2 [Build 379]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Defined symbols:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CR_INTEGER_PRINTF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CR_PRINTF_CHAR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; __CODE_RED&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; __USE_LPCOPEN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CORE_M3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; __REDLIB__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Board: LPCXpresso LPC1343 Rev A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Build Configuration: Debug (Debug build)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Host: Windows7 Professional SP1 32bit on Intel Core i7-4790 @ 3.60GHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Debugger: both LPC-Link and LPC-Link2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Recognized as USB Device with DFU Capabilities with Driver Philips(NXP) 3.12.0.0 (2010/03/11)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:46:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-of-Redlib-semihost-doesn-t-work/m-p/591224#M29495</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: printf of Redlib(semihost) doesn't work</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/printf-of-Redlib-semihost-doesn-t-work/m-p/591225#M29496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by whitecoe on Sun Jun 14 07:24:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Your board library is probably redirecting Redlib's output to the serial port:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcopen-debug-inputoutput-support" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcopen-debug-inputoutput-support&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS - you probably don't want a semihosting operation inside an interrupt handler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fsemihosting" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/semihosting&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:46:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/printf-of-Redlib-semihost-doesn-t-work/m-p/591225#M29496</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:46:24Z</dc:date>
    </item>
  </channel>
</rss>

