<?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/DEBUTOUT() with DEBUG_UART not SemiHosting in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/514269#M605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Feb 04 12:36:22 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Switch from the "None" to the "Nohost" C library variant. For more details see:&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=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Flinker-undefined-reference" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/linker-undefined-reference&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fusing-printf" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/using-printf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:12:14 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:12:14Z</dc:date>
    <item>
      <title>Using printf/DEBUTOUT() with DEBUG_UART not SemiHosting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/514267#M603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gwlindberg on Thu Feb 04 12:06:46 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use uart0 in our LPC1517 for debug output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've enabled the defines for DEBUG_ENABLE AND DEBUG_UART in board.h and if I use the DEBUGOUT() macro everything compiles correctly. If I try to use the DEBUGOUT() macro or printf() I get the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
c:/nxp/lpcxpresso_8.0.0_526/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(alloc.o): In function `_Csys_alloc':
alloc.c:(.text._Csys_alloc+0x12): undefined reference to `__sys_appexit'
c:/nxp/lpcxpresso_8.0.0_526/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(_deferredlazyseek.o): In function `__flsbuf':
_deferredlazyseek.c:(.text.__flsbuf+0x84): undefined reference to `__sys_istty'
c:/nxp/lpcxpresso_8.0.0_526/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(_writebuf.o): In function `_Cwritebuf':
_writebuf.c:(.text._Cwritebuf+0x14): undefined reference to `__sys_flen'
_writebuf.c:(.text._Cwritebuf+0x28): undefined reference to `__sys_seek'
c:/nxp/lpcxpresso_8.0.0_526/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(fseek.o): In function `fseek':
fseek.c:(.text.fseek+0x1a): undefined reference to `__sys_istty'
fseek.c:(.text.fseek+0x44): undefined reference to `__sys_flen'
collect2.exe: error: ld returned 1 exit status
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where are these symbols defined? board_api.h redefines the DEBUGOUT() macro to printf for non-SemiHosting debugging, so I would assume that it is expected to work. Am I expected to provide stubs for these functions, I've searched and I can't find any sample code for these functions, what is supposed to be in them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/514267#M603</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf/DEBUTOUT() with DEBUG_UART not SemiHosting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/514268#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gwlindberg on Thu Feb 04 12:34:39 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently when we first built the project we ended up with the none libraries.&amp;nbsp; I had searched for where to find the library selection to no avail in the past, but I went looking again and found it this time.&amp;nbsp; We are using LPCXpresso 8.0.0, the selection is buried on the Properties/C/C++ Build/settings/ToolSettings tab, MCU Linker/Managed Linker Script page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed to the nohost library and now my project is linking correctly with a printf() call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess that I've answered my own question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:12:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/514268#M604</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf/DEBUTOUT() with DEBUG_UART not SemiHosting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/514269#M605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Feb 04 12:36:22 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Switch from the "None" to the "Nohost" C library variant. For more details see:&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=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Flinker-undefined-reference" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/linker-undefined-reference&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fusing-printf" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/using-printf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:12:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/514269#M605</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf/DEBUTOUT() with DEBUG_UART not SemiHosting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/1652584#M52566</link>
      <description>&lt;P&gt;The links shown in the post are no longer valid.&amp;nbsp; &amp;nbsp; &amp;nbsp;I'm using an lpc11e13 and the lpcopen chip library for lpc11c24.&amp;nbsp; &amp;nbsp; I do not have a board library hence no board.h.&lt;/P&gt;&lt;P&gt;Is it possible to use lpcopen in this fashion?&amp;nbsp; &amp;nbsp;Do I need to create a board library or is there an lpcopen document that describes what to do in the case of a customer custom board.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 23:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-printf-DEBUTOUT-with-DEBUG-UART-not-SemiHosting/m-p/1652584#M52566</guid>
      <dc:creator>pentleman</dc:creator>
      <dc:date>2023-05-17T23:11:38Z</dc:date>
    </item>
  </channel>
</rss>

