<?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: Why does semihosting stop working when I add c++ code to the system in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529167#M1340</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 May 15 09:54:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This will be fixed in the next LPCXpresso release, which is currently targeted for the end of May.&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>Thu, 16 Jun 2016 02:53:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:53:35Z</dc:date>
    <item>
      <title>Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529156#M1329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by modig on Fri Apr 10 02:22:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to using the LPCXpresso and have a LPCXpresso11U68 which I want to run some c++ code on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;( Uisng version&amp;nbsp; v.7.7.2_379 ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a new c++ project and switched on the newlib adding the following printf statement to to the main routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i++ ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if ( i &amp;gt; 10000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;printf ( "hello world \n\r");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i =0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works well and I see a continous stream of output on the console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that when I add some more simple c++ to the system the printf stops working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be only a couple of class declarations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know what causes this or should semihosting work at all in this instance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529156#M1329</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529157#M1330</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 Apr 10 02:42:21 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Please export and attach your non-working project to this thread so we can investigate your issue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529157#M1330</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529158#M1331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by modig on Fri Apr 10 05:36:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please find attached the zip. This is pretty much a standard c++ project with the small chnages to main.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have switched on semi hosting in the support libraries&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529158#M1331</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529159#M1332</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 Apr 10 05:59:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Works perfectly here - I get 100 "xxxxx" followed by a large number of "hello world".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was running your project to an LPCXpresso11u68 target.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529159#M1332</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529160#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by modig on Fri Apr 10 08:19:43 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it was on a 11u68 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Did you try adding some cpp in a separate file ie Something like the following. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some other cpp if you have it &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AT_Err::AT_Err()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char buf [100];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprintf (buf, " error, errno: 0x%x\n", errnoGet());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; makeCopy (buf);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AT_Err::AT_Err(const int err)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char buf [100];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprintf (buf, " error, errno: 0x%x\n", err);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; makeCopy (buf);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AT_Err::AT_Err(const char *s)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char buf [100];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprintf (buf, "%s.&amp;nbsp; error, errno: 0x%x\n", s, errnoGet());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; makeCopy(buf);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529160#M1333</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529161#M1334</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 Apr 10 08:46:43 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I did not make any changes. I asked you for a project that exhibited the problem - are you now telling me that the project you provided doesn't?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; If you would like me to investigate, please provide a project, together with instructions on how to reproduce the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529161#M1334</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529162#M1335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by modig on Mon Apr 13 02:11:05 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please find attached a demo which does not work. The main()&amp;nbsp; should simply perform lots of printfs&amp;nbsp; as before&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but this no longer works when I have added the simple and I think passive file test5.cpp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you exclude the "test5.cpp" then the printfs start to work again.&amp;nbsp;&amp;nbsp; This also appears to happen &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with other segments of cpp code. The question is why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529162#M1335</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529163#M1336</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 Mon Apr 13 04:18:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Still looking into this, but if you comment out the&lt;/SPAN&gt;&lt;STRONG&gt; #include &amp;lt;iostream&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt; in test5.cpp, this will get your printf's working again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: #include &amp;lt;iostream&amp;gt; is #include iostream, with iostream surrounded with &amp;lt; and &amp;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>Thu, 16 Jun 2016 02:53:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529163#M1336</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529164#M1337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by modig on Wed Apr 15 07:18:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The test5.cpp include was just to demo the problem. Any ideas as to the root problem of this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529164#M1337</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529165#M1338</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 Wed Apr 15 07:44:57 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, we have some ideas as to possible causes, but as we stated previously - we are still looking into this.&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>Thu, 16 Jun 2016 02:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529165#M1338</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529166#M1339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by modig on Thu May 14 06:44:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Any time sclae on this. I have a large amount of c++ code to debug and want to know the best way to proceed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529166#M1339</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does semihosting stop working when I add c++ code to the system</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529167#M1340</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 May 15 09:54:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This will be fixed in the next LPCXpresso release, which is currently targeted for the end of May.&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>Thu, 16 Jun 2016 02:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-does-semihosting-stop-working-when-I-add-c-code-to-the/m-p/529167#M1340</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:53:35Z</dc:date>
    </item>
  </channel>
</rss>

