<?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: how to use DEBUGOUT and DEBUGSTR in lpcopen platform  v1.03 examples</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525712#M8348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xie.w.q on Tue Jul 30 19:15:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and must define DEBUG_SEMIHOSTING in ... \sys_config.h to output message to Debug-Host console.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:56:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:56:35Z</dc:date>
    <item>
      <title>how to use DEBUGOUT and DEBUGSTR in lpcopen platform  v1.03 examples</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525709#M8345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tmune on Wed Jul 24 23:18:59 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have some questions on the lpcopen platform v1.03 document, called "NXP Xpresso LPC1347 board" at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Flpcopen%2Fv1.03%2F_l_p_c_o_p_e_n_13_x_x__b_o_a_r_d__x_p_r_e_s_s_o_1347.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/lpcopen/v1.03/_l_p_c_o_p_e_n_13_x_x__b_o_a_r_d__x_p_r_e_s_s_o_1347.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It describes how to set up the hardware, NXP Xpresso LPC1347 board, and optionally set the uart for getting debug messages via a uart. The below is my original posting without this intro.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that ARM has a general function called semihosting which uses a uart for debug output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Old posting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation for lpcopen platform describes "Optional UART setup for NXP Xpresso LPC1347 board". It says "Once the dongle is connected to the board, UART support can be enabled in the platform by enabling the DEBUG_ENABLE define in the sys_config.h file for the board. This allows the DEBUGOUT and DEBUGSTR macros to route data to the UART."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[list=1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]Is the uart function automatically compiled in the example project such as nxp_xpresso_1347_periph_blinky?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*] If so, how to specify the port number for debug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*] What is the format for DEBUGOUT? Is it DEBUGOUT("my message"); ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*] What is for DEBUGSTR?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Takashi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525709#M8345</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to use DEBUGOUT and DEBUGSTR in lpcopen platform  v1.03 examples</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525710#M8346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tmune on Mon Jul 29 09:00:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solutions to these questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used nxp_xpresso_1347_periph_adc which include DEBUGSTR. I used the uart in 1347 and PIO0_11 for adc input. One of the uart output is "ADC value is 1092", which is in decimal formt of ADC0 value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I found "semihosting" is enabled in Xpresso IDE( Redlib library) so that you can use output function calls such as printf to the IDE console. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tried or found how to use DEBUGOUT yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Takashi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525710#M8346</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to use DEBUGOUT and DEBUGSTR in lpcopen platform  v1.03 examples</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525711#M8347</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 Mon Jul 29 11:00:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are 3 DEBUG* macros for simple (blocked) I/O. These macros can be optimized out of the code, routed to UART I/O, or routed to semihosted I/O.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGSTR - send a string to the debug output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGOUT - send a formatted string to the debug output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUGIN - get a byte of data from the debug input&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The macros are enabled when DEBUG_ENABLE is defined (usually in sys_config.h). When DEBUG_ENABLE is not defined, the functionality for these macros is removed from the code to make a smaller image. These functions are blocking in that they will slow down your application considerably!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Flpcopen%2Fv1.03%2F_retarget_8c_source.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/lpcopen/v1.03/_retarget_8c_source.html&lt;/A&gt;&lt;SPAN&gt; for more information on how this is used.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;DEBUGOUT&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This macro defines to "printf" and is used for formatted output when used with UART output and semihosting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;DEBUGSTR&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This macro is used to print an unformatted string. If you don't need to print formatted strings, you can use this instead of get a smaller build image (as the formmatted print functions won't be needed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;DEBUGIN&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This macro is used to read a byte from the input. This (currently) only works with the UART. If a byte isn't available or it is used in a semihosted build, this will return "EOF".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These 3 macros work the same for LPCXpresso, IAR, and Keil tool chains. With LPCXpresso, you'll also need to build with a library that supported semihosting to use the semihosting options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:56:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525711#M8347</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to use DEBUGOUT and DEBUGSTR in lpcopen platform  v1.03 examples</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525712#M8348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xie.w.q on Tue Jul 30 19:15:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and must define DEBUG_SEMIHOSTING in ... \sys_config.h to output message to Debug-Host console.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-use-DEBUGOUT-and-DEBUGSTR-in-lpcopen-platform-v1-03/m-p/525712#M8348</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:56:35Z</dc:date>
    </item>
  </channel>
</rss>

