<?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>MCUXpresso IDEのトピックRe: .noInit Question</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087432#M5941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/converse"&gt;converse&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to allocate a region of memory for the packet pool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define NX_PACKET_POOL_SIZE ((1536 + sizeof(NX_PACKET)) * 50)&lt;/P&gt;&lt;P&gt;__NOINIT(RAM5) ULONG ClassName::packet_pool_area[NX_PACKET_POOL_SIZE/4 + 4];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2020 18:28:43 GMT</pubDate>
    <dc:creator>chadgraham</dc:creator>
    <dc:date>2020-06-24T18:28:43Z</dc:date>
    <item>
      <title>.noInit Question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087430#M5939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large array for an Ethernet interface for an RTOS implementation that I am trying to place into the SDRAM on a RT1060 dev kit.&amp;nbsp; I have broken the SDRAM into 2 pieces by isolating a portion of the memory to RAM5 (Location: 0x81C0 0000, Size: 0x20 0000, RAM5).&amp;nbsp; In my code, I have included &amp;lt;cr_section_macros.h&amp;gt; and have the array defined as&amp;nbsp;&lt;EM&gt;__NOINIT(RAM5)&amp;nbsp;uint16_t ClassName::array[SIZE]&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the __NOINIT(RAM5) from the definition and use a definition of &lt;EM&gt;uint16_t&amp;nbsp;ClassName::array[SIZE]&lt;/EM&gt;, the application runs without issues and continuously responds to pings.&amp;nbsp; &amp;nbsp; If I leave the __NOINIT(RAM5), then the program works for about a second (3-4 pings) before it just stops responding.&amp;nbsp; The thread is still active and the system does not report any issues so I am assuming it has something to do with the array location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am successfully using the RAM at a different location so I can verify that the SDRAM is initialized and running.&amp;nbsp; Additionally, this is the only thing that has been assigned to this new memory region so it isn't corruption from a different thread or data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 17:24:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087430#M5939</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2020-06-24T17:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: .noInit Question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087431#M5940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you actually trying to achieve by using NOINIT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 18:17:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087431#M5940</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-06-24T18:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: .noInit Question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087432#M5941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/converse"&gt;converse&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to allocate a region of memory for the packet pool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define NX_PACKET_POOL_SIZE ((1536 + sizeof(NX_PACKET)) * 50)&lt;/P&gt;&lt;P&gt;__NOINIT(RAM5) ULONG ClassName::packet_pool_area[NX_PACKET_POOL_SIZE/4 + 4];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 18:28:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087432#M5941</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2020-06-24T18:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: .noInit Question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087433#M5942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried __BSS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 19:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087433#M5942</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-06-24T19:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: .noInit Question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087434#M5943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/converse"&gt;converse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I tried both __DATA and __BSS, but they produce a seg fault when I start the application.&amp;nbsp; My understanding is that the SDRAM must be initialized before it can be accessed.‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active faults&lt;BR /&gt;Bus Fault (BFSR)&lt;BR /&gt; IMPRECISERR (2) Imprecise data bus error&lt;BR /&gt;Hard Fault (HFSR)&lt;BR /&gt; FORCED (30) Indicates a forced hard fault, generated by escalation of a fault with configurable priority that cannot be handled, either because of priority or because it is disabled&lt;/P&gt;&lt;P&gt;Fault Status Registers&lt;BR /&gt;IPSR 0x00000003 Exception Status Register (Hard Fault)&lt;BR /&gt;CFSR 0x00000400 Configurable fault Status Register&lt;BR /&gt;MMSR 0x00000000 Memory Manage fault Status Register&lt;BR /&gt;BFSR 0x00000004 Bus fault Status Register&lt;BR /&gt;UFSR 0x00000000 User fault Status Register&lt;BR /&gt;HFSR 0x40000000 Hard fault Status Register&lt;BR /&gt;DFSR 0x00000000 Debug fault Status Register&lt;BR /&gt;MMAR 0x00000000 Memory Manage fault Address Register&lt;BR /&gt;BFAR 0x00000000 Bus fault Address Register&lt;BR /&gt;ABFSR 0x00000208 Auxiliary Bus Fault Status Register&lt;/P&gt;&lt;P&gt;Stacked Registers (MSP LR/EXC_RETURN=0xfffffff9)&lt;BR /&gt;R0 0x81C00048 &lt;BR /&gt;R1 0x000137C8 &lt;BR /&gt;R2 0x00000000 &lt;BR /&gt;R3 0x00000048 &lt;BR /&gt;R12 0x000001FE &lt;BR /&gt;LR 0x600023B5 data_init(unsigned int, unsigned int, unsigned int)() @ \&amp;lt;Removed&amp;gt;\startup\startup_mimxrt1062.cpp line 614&lt;BR /&gt;PC 0x600023F2 bss_init(unsigned int, unsigned int)() @ \&lt;SPAN&gt;&amp;lt;Removed&amp;gt;&lt;/SPAN&gt;\startup\startup_mimxrt1062.cpp line 626&lt;BR /&gt;PSR 0x81000000 &lt;BR /&gt;MSP 0x2001FFD8 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 19:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087434#M5943</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2020-06-24T19:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: .noInit Question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087435#M5944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understand what you are doing now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don’t think that the NOINIT is causing you problem. I’d take a look at you SDRAM init code. You also need to debug your application to see what it is doing when it stops responding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2020 07:41:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/noInit-Question/m-p/1087435#M5944</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-06-25T07:41:24Z</dc:date>
    </item>
  </channel>
</rss>

