<?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>MQX Software Solutions中的主题 Re: Application crashes during constructor/array initialization</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Application-crashes-during-constructor-array-initialization/m-p/1423460#M18707</link>
    <description>&lt;P&gt;Hi Larry:&lt;/P&gt;
&lt;P&gt;Could you please let me know the detail steps to reproduce your issue?&lt;/P&gt;
&lt;P&gt;Default settings should be compiled with C. not C++&lt;/P&gt;
&lt;P&gt;You can check the project properties for the compiler&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_0-1646438500263.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172543i551C77C583B3F710/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielchen_0-1646438500263.png" alt="danielchen_0-1646438500263.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Mar 2022 00:02:15 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2022-03-05T00:02:15Z</dc:date>
    <item>
      <title>Application crashes during constructor/array initialization</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Application-crashes-during-constructor-array-initialization/m-p/1417740#M18706</link>
      <description>&lt;P&gt;*** This issue was originally posted under CodeWarrior.&amp;nbsp; I wasn't sure which forum was appropriate. ***&lt;/P&gt;&lt;P&gt;I am creating a "C" application for the MK60DN512VMD10 running MQX 4.1.&lt;/P&gt;&lt;P&gt;I cloned the MQX BSP using the BSP Wizard and modified it for my custom hardware. Sample projects were included in the cloning process. I can run "Hello World" with no issues. However, my application immediately dies on startup hitting "__boot_exception()".&lt;/P&gt;&lt;P&gt;I can follow "__boot" to "toolchain_startup()" to "__thumb_startup()" to "__call_static_initializers()" to "__init_cpp()". "__CTOR_LIST__" is identical to "__CTOR_END__" so no constructors are initialized. "__preinit_array_start" is identical to "__preinit_array_end" so no work there. However, there is an entry in "__init_array_start/__init_array_end" that is pointing into ".text 0x000006cc 0x94 c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/crtbegin.o". The call to "(*constructor)()" then goes off the rails.&lt;/P&gt;&lt;P&gt;Neither "BSPCFG_ENABLE_CPP" nor "MQX_ENABLE_CPP" are defined in my BSP project header, "mqx_cnfg.h" or any other project file. So, why is this initialization even taking place.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 22:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Application-crashes-during-constructor-array-initialization/m-p/1417740#M18706</guid>
      <dc:creator>larry_bochenko</dc:creator>
      <dc:date>2022-02-22T22:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Application crashes during constructor/array initialization</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Application-crashes-during-constructor-array-initialization/m-p/1423460#M18707</link>
      <description>&lt;P&gt;Hi Larry:&lt;/P&gt;
&lt;P&gt;Could you please let me know the detail steps to reproduce your issue?&lt;/P&gt;
&lt;P&gt;Default settings should be compiled with C. not C++&lt;/P&gt;
&lt;P&gt;You can check the project properties for the compiler&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_0-1646438500263.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172543i551C77C583B3F710/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielchen_0-1646438500263.png" alt="danielchen_0-1646438500263.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 00:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Application-crashes-during-constructor-array-initialization/m-p/1423460#M18707</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2022-03-05T00:02:15Z</dc:date>
    </item>
  </channel>
</rss>

