<?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: DEBUGOUT() HardFault</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGOUT-HardFault/m-p/582294#M20641</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 Fri Aug 08 01:52:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first place, make sure you read…&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;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:21:02 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:21:02Z</dc:date>
    <item>
      <title>DEBUGOUT() HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGOUT-HardFault/m-p/582293#M20640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LTamas on Thu Aug 07 07:35:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a Bsc student, and totally new to LPCXpresso. We recently bought a 1549 devboard (v2), and I'm taking baby steps to find out how to use LPCOpen. I'm using Win 8.1, and had a hard time to get everything working. I can now build and debug all the examples with one big problem: I can't get the DEBUGOUT function to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a totally naked HelloWorld project with a single DEBUGOUT("xy") call, and also tried building several original example projects as well, the problem happens everywhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While I've managed to use UART and DEBUGSTR() to output raw strings, DEBUGOUT failed miserably with a HardFault right after uploading the code, not even stopping at the breakpoint set to main(). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, as soon as i try to use any standard C functions, (namely sprintf to workaround the problem), I encounter a similar HardFault again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using the projects in semihosting mode as well (commented out DEBUG_UART LPC_USART0, and enabled DEBUG_SEMIHOSTING and set library to Redlib (semihost)), to no avail. If a DEBUGOUT() is present, the system ends up in a HardFault right after starting the debug session (no faults during build/make however).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I start everything without any changes in the original code, DEBUG_ENABLE is active, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there's anything (logs or whatever) that could help you find my problem, please tell me how to find them first :D I'm using the latest version of LPCXpresso and LPCOpen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGOUT-HardFault/m-p/582293#M20640</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: DEBUGOUT() HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGOUT-HardFault/m-p/582294#M20641</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 Fri Aug 08 01:52:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first place, make sure you read…&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;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGOUT-HardFault/m-p/582294#M20641</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: DEBUGOUT() HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGOUT-HardFault/m-p/582295#M20642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LTamas on Fri Aug 08 07:44:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already read that, and unfortunately it wasn't much of a help. However, I've managed to fix the problem. Firstly, I'm using UART now, as originally intended (nohost). Printf (and DEBUGOUT) was still unoperational, until I recreated the project setting printf to the version thats not handling floats, and to work char-by-char. This way, everything works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your quick reply anyways :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DEBUGOUT-HardFault/m-p/582295#M20642</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:03Z</dc:date>
    </item>
  </channel>
</rss>

