<?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: A better ASSERT in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596952#M32052</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 Fri Sep 24 02:12:41 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you are linking with the semihosted variant of the Redlib C library, then assert has been recoded for the next version of redlib ("Redlib_v2", a beta of which is included within the Linux beta of LPCXpresso) such that it will terminate execution of the program, rather than going in to a while(1) loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, if you want to cause program termination yourself, then you can call the function from within the semihosting layer of Redlib:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void __exit(void);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Note that this interface to the semihosting layer in Redlib_v2 has unfortunately had to change slightly, and __exit() will become __sys_appexit().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a few more notes on Redlib_v2 for anyone who is interested:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/redlib_v2_notes&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Please note that this FAQ is still work in progress.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:03:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:03:47Z</dc:date>
    <item>
      <title>A better ASSERT</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596951#M32051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briand on Thu Sep 23 16:23:09 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an instruction or register that can be used to cause the processor to break into the debugger?&amp;nbsp; I see ASSERT written with while(1) in example code, but I would imagine there's something more direct than having to hit pause just to see if you've failed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:03:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596951#M32051</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: A better ASSERT</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596952#M32052</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 Fri Sep 24 02:12:41 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you are linking with the semihosted variant of the Redlib C library, then assert has been recoded for the next version of redlib ("Redlib_v2", a beta of which is included within the Linux beta of LPCXpresso) such that it will terminate execution of the program, rather than going in to a while(1) loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, if you want to cause program termination yourself, then you can call the function from within the semihosting layer of Redlib:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void __exit(void);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Note that this interface to the semihosting layer in Redlib_v2 has unfortunately had to change slightly, and __exit() will become __sys_appexit().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a few more notes on Redlib_v2 for anyone who is interested:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/redlib_v2_notes&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Please note that this FAQ is still work in progress.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:03:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596952#M32052</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: A better ASSERT</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596953#M32053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Sep 24 03:47:16 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I'm interested :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this &lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;first public beta of the new "Redlib_v2" C library&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;included in the next release of Windows-LPCXpresso?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:03:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596953#M32053</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: A better ASSERT</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596954#M32054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briand on Fri Sep 24 14:32:34 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Perfect, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:03:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/A-better-ASSERT/m-p/596954#M32054</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:03:48Z</dc:date>
    </item>
  </channel>
</rss>

