<?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>LPC Microcontrollers中的主题 Re: DEBUGSTR works but DEBUGOUT does not</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGSTR-works-but-DEBUGOUT-does-not/m-p/576280#M19408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Thu Mar 06 11:17:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't speak for the Chip_UART_SetBaudFDR() function, but I'd guess the DEBUGOUT doesn't work because of library selection. You'll need to use the redlib (nohost) library to use DEBUGOUT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGOUT maps to printf(), while DEBUGSTR maps to a direct UART output function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGSTR will work with redlib (none), but you can only output a simple string (unformatted) with it.&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;You can also route those functions via semihosting using redlib (senihosting) and enabling the DEBUG_SEMIHOSTING definition in board.h.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:16:45 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:16:45Z</dc:date>
    <item>
      <title>DEBUGSTR works but DEBUGOUT does not</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGSTR-works-but-DEBUGOUT-does-not/m-p/576279#M19407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rocketdawg on Tue Mar 04 13:40:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCOpen 2.04 for LPC4330&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGSTR does indeed work, strings are transmitted and displayed in TeraTerm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like retarget.h in lpc_board_...&amp;nbsp; should be directing the __sys_write to the WRITEFUNC()&amp;nbsp; which should direct printf() to output to the UART.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But no output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, Board_Debug_Init() calls Chip_UART_SetBaud(DEBUG_UART, 115200);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which fails miserably &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;replacing that call with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_UART_SetBaudFDR(DEBUG_UART, 115200);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;does work and sets the baud rate correctly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit using LPCOpen 2.04&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:16:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGSTR-works-but-DEBUGOUT-does-not/m-p/576279#M19407</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: DEBUGSTR works but DEBUGOUT does not</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGSTR-works-but-DEBUGOUT-does-not/m-p/576280#M19408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Thu Mar 06 11:17:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't speak for the Chip_UART_SetBaudFDR() function, but I'd guess the DEBUGOUT doesn't work because of library selection. You'll need to use the redlib (nohost) library to use DEBUGOUT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGOUT maps to printf(), while DEBUGSTR maps to a direct UART output function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGSTR will work with redlib (none), but you can only output a simple string (unformatted) with it.&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;You can also route those functions via semihosting using redlib (senihosting) and enabling the DEBUG_SEMIHOSTING definition in board.h.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:16:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGSTR-works-but-DEBUGOUT-does-not/m-p/576280#M19408</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:16:45Z</dc:date>
    </item>
  </channel>
</rss>

