<?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: Initializzation of global Object in C++ - In K22 Prokject in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Initializzation-of-global-Object-in-C-In-K22-Prokject/m-p/1543062#M8149</link>
    <description>&lt;P&gt;See &lt;A href="https://mcuoneclipse.com/2022/10/24/shut-down-c-embedded-systems-with-calling-the-global-destructors/" target="_blank"&gt;https://mcuoneclipse.com/2022/10/24/shut-down-c-embedded-systems-with-calling-the-global-destructors/&lt;/A&gt; how constructors (and even destructors) are handled from the startup code.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 03:45:06 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2022-10-25T03:45:06Z</dc:date>
    <item>
      <title>Initializzation of global Object in C++ - In K22 Prokject</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Initializzation-of-global-Object-in-C-In-K22-Prokject/m-p/1537223#M8136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm writing, a software for K22-based board. I have great problem, I'd like to write a global Object. I'm trying to insert them,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but no constructor runs before main. resulting in the impossibility of initializing the Objects. This creates errors at Run-Time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i.e. &lt;STRONG&gt;Each Objects, writen below, are defined outside main and Each Object is outside of any method.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tDebIn Interlock(PTB10); /* interlock*/&lt;BR /&gt;/*DipSwitch*/&lt;BR /&gt;tDebIn DIP_SW1(PTC12);&lt;BR /&gt;tDebIn DIP_SW2(PTC13);&lt;BR /&gt;tDebIn DIP_SW3(PTC14);&lt;BR /&gt;tDebIn DIP_SW4(PTC15);&lt;BR /&gt;tDebInAs TRIGGER(PTB11);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nobody Costructur CLass is executed. What I have to do, to initialize the Object before the main&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;goes into execution.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 15:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Initializzation-of-global-Object-in-C-In-K22-Prokject/m-p/1537223#M8136</guid>
      <dc:creator>vdavi81_cefla</dc:creator>
      <dc:date>2022-10-13T15:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Initializzation of global Object in C++ - In K22 Prokject</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Initializzation-of-global-Object-in-C-In-K22-Prokject/m-p/1543062#M8149</link>
      <description>&lt;P&gt;See &lt;A href="https://mcuoneclipse.com/2022/10/24/shut-down-c-embedded-systems-with-calling-the-global-destructors/" target="_blank"&gt;https://mcuoneclipse.com/2022/10/24/shut-down-c-embedded-systems-with-calling-the-global-destructors/&lt;/A&gt; how constructors (and even destructors) are handled from the startup code.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 03:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Initializzation-of-global-Object-in-C-In-K22-Prokject/m-p/1543062#M8149</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-10-25T03:45:06Z</dc:date>
    </item>
  </channel>
</rss>

