<?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: Error reported when terminating scanf() operation. in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-reported-when-terminating-scanf-operation/m-p/551867#M12047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sun Feb 14 13:02:06 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the code fragment. We're investigating your problem report.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:40:12 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:40:12Z</dc:date>
    <item>
      <title>Error reported when terminating scanf() operation.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-reported-when-terminating-scanf-operation/m-p/551866#M12046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noritan_org on Sat Feb 13 02:15:58 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;An "Error" dialogue appears when terminating a program using scanf() function to get inputs from the user. The dialogue says,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Target request failed: Failed to interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The program I am executing is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca" style="border:1px solid black;background-color:#cacaca;border:1px solid black;background-color:#cacaca;background-color:#cacaca;border:1px solid black;"&gt; &lt;PRE&gt;#ifdef __USE_CMSIS
#include "LPC11xx.h"
#endif

#include &amp;lt;stdio.h&amp;gt;

int main(void) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; char line[32];

&amp;nbsp;&amp;nbsp;&amp;nbsp; while (1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf("%32s", line);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%s\n", line);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;SPAN&gt;Program just echos-back user inputs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When this program is running and the "Terminate" button on the "Debug" view is clicked, the "Error" dialogue appears.&amp;nbsp; But the "Debug" view is still existing there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the "Error" dialogue appears, there is no way to communicate with LPCXpresso without un-plug from USB and then plug into USB again. When "Debug" button is clicked without recycling USB connection, an another error dialogue appears as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Connect to emulator or board: NXP LPC1100&lt;BR /&gt;X No emulator or board available.&lt;BR /&gt;This could be because it is unpowered, unconnected or already in use.&lt;BR /&gt;Device is connected already Other VIDPID=00000000 (Connected)&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;I understand the second dialogue appears because a "gdb" process is still running grabbing the LPCXpresso USB device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My operating system is Windows XP SP2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have same problem ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:40:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-reported-when-terminating-scanf-operation/m-p/551866#M12046</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error reported when terminating scanf() operation.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Error-reported-when-terminating-scanf-operation/m-p/551867#M12047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Sun Feb 14 13:02:06 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the code fragment. We're investigating your problem report.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Error-reported-when-terminating-scanf-operation/m-p/551867#M12047</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:40:12Z</dc:date>
    </item>
  </channel>
</rss>

