<?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: assert() behaviour in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431388#M3767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes... you can change it in the SDK location. Not in your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 22:41:39 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2016-02-12T22:41:39Z</dc:date>
    <item>
      <title>assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431382#M3761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KDS 3.0&lt;/P&gt;&lt;P&gt;SDK 1.2&lt;/P&gt;&lt;P&gt;Using MQX&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using assert() to check some parameter ranges.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it is triggered it drops into a infinite loop and nothing is output on the debug console.&lt;/P&gt;&lt;P&gt;There isn't any source for the actual assert function that I can find, so I can't determine how to get it to print out an error message.&lt;/P&gt;&lt;P&gt;And yes, I'm working with a debug image (DEBUG is defined).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I bet I'm missing some compiler define, but I can't find it documented anywhere.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 20:06:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431382#M3761</guid>
      <dc:creator>randyhermes</dc:creator>
      <dc:date>2015-10-02T20:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431383#M3762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have reproduced and reported this behavior to KSDK developers. However they are focused on higher priority tasks and will take a look to this issue in some weeks. Unfortunately there is no work around now for this case. Sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 15:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431383#M3762</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-11-09T15:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431384#M3763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 7.5pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif';"&gt;In the file &amp;lt;sdk_dir&amp;gt;\platform\utilities\src\fsl_misc_utilities.c, rename the assert_func() to __assert_func(). This function will connect to assert function of compiler.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then rebuild ksdk_mqx_lib.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 01:08:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431384#M3763</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-11-24T01:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431385#M3764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this same issue.....but I only have the fsl_misc_utlities.h header file in my project....no source???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using MQX Standard...selected from PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I navigate to C:\Freescale\KSDK_1.2.0\platform\utilities\src .....I can see the following files \ folders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;virtual_com folder&lt;/P&gt;&lt;P&gt;fsl_debug_console.c&lt;/P&gt;&lt;P&gt;fsl_misc_utilities.c&lt;/P&gt;&lt;P&gt;print_scan,c&lt;/P&gt;&lt;P&gt;print_scan.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the project directory in KDS I have....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDK&amp;gt;platform&amp;gt;utilities&amp;gt;inc&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl_debug_console.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl_misc_utilities.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again there is no src folder and no fsl_misc_utilites.c??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jerome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 22:39:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431385#M3764</guid>
      <dc:creator>F50SC</dc:creator>
      <dc:date>2015-12-21T22:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431386#M3765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jerome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont get the problem. Inside C:\Freescale\KSDK_1.3.0\platform\utilities\src the is fsl_misc_utilities.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 17:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431386#M3765</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-01-15T17:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431387#M3766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, correct I can see this file in the Freescale directory as per my post above. The only difference is I'm using KSDK 1.20?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is there is no source folder named ie. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;SDK&amp;gt;platform&amp;gt;utilities&amp;gt;src&amp;nbsp; for my project in KDS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;See below....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60269i74588326D95D205B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Jerome&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 05:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431387#M3766</guid>
      <dc:creator>F50SC</dc:creator>
      <dc:date>2016-02-08T05:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431388#M3767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes... you can change it in the SDK location. Not in your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:41:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431388#M3767</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-02-12T22:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431389#M3768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm seeing the same behavior with MCUXpresso IDE v10.1.1 and FRDM-K64F SDK 2.4.2.&amp;nbsp; How do I rebuild&amp;nbsp;ksdk_mqx_lib?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 14:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431389#M3768</guid>
      <dc:creator>pcpro178</dc:creator>
      <dc:date>2018-09-17T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: assert() behaviour</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431390#M3769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I reopen the thread because I have a question related to that topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the IMXRT1050 board and I saw the assertion failed declaration in assert.h file of the redlib library. Here below the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;void __assertion_failed(char *_Expr) __attribute__ ((noreturn));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; * It is legal to reset NDEBUG and re-include &amp;lt;assert.h&amp;gt; hence the&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; * fact that this bit gets done every time it is included. This&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; * implementation follows the Rationale to the C99 standard.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#ifdef NDEBUG&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;# define assert(ignore) ((void)0)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#else&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#define _ASSERT_STR(x) _ASSERT_VAL(x)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#define _ASSERT_VAL(x) #x&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#define assert(expr) \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ((expr) ? (void)0 : \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; __assertion_failed(__FILE__ ":" _ASSERT_STR(__LINE__) " : " #expr))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there is definition of&amp;nbsp;&lt;EM&gt;__assertion_failed&lt;/EM&gt; function nowhere. Does a developer define it or the SDK provide it if some symbol is defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Massimiliano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 08:22:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/assert-behaviour/m-p/431390#M3769</guid>
      <dc:creator>massimiliano_fr</dc:creator>
      <dc:date>2019-07-23T08:22:02Z</dc:date>
    </item>
  </channel>
</rss>

