<?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 SDK中的主题 LPC54606 Undeclared memory region</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC54606-Undeclared-memory-region/m-p/860591#M1246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the MCUXpresso SDK 2.5 with arm embedded GCC compiler I believe there is a bug in the LPC54606 linker file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The following memory areas are declared:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;BR /&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt; m_text (RX) : ORIGIN = 0x00000400, LENGTH = 0x0007FC00&lt;BR /&gt; m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00028000&lt;BR /&gt; m_sramx (RW) : ORIGIN = 0x04000000, LENGTH = 0x00008000&lt;BR /&gt; m_usb_sram (RW) : ORIGIN = 0x40100000, LENGTH = 0x00002000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But there is a mapping to the memory area "m_data_3" that does not exist:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Initializes stack on the end of block */&lt;BR /&gt; __StackTop = ORIGIN(m_data_3) + LENGTH(m_data_3);&lt;BR /&gt; __StackLimit = __StackTop - STACK_SIZE;&lt;BR /&gt; PROVIDE(__stack = __StackTop);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This results in the following GCC linker warning:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LPC54606J512_flash.ld:183: warning: memory region `m_data_3' not declared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code does not work since the stack is now undefined. As workaround I use the LPC54608J512 linker file which works but it is not the best solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Mar 2019 07:56:07 GMT</pubDate>
    <dc:creator>j3ll3</dc:creator>
    <dc:date>2019-03-03T07:56:07Z</dc:date>
    <item>
      <title>LPC54606 Undeclared memory region</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC54606-Undeclared-memory-region/m-p/860591#M1246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the MCUXpresso SDK 2.5 with arm embedded GCC compiler I believe there is a bug in the LPC54606 linker file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The following memory areas are declared:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;BR /&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt; m_text (RX) : ORIGIN = 0x00000400, LENGTH = 0x0007FC00&lt;BR /&gt; m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00028000&lt;BR /&gt; m_sramx (RW) : ORIGIN = 0x04000000, LENGTH = 0x00008000&lt;BR /&gt; m_usb_sram (RW) : ORIGIN = 0x40100000, LENGTH = 0x00002000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But there is a mapping to the memory area "m_data_3" that does not exist:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Initializes stack on the end of block */&lt;BR /&gt; __StackTop = ORIGIN(m_data_3) + LENGTH(m_data_3);&lt;BR /&gt; __StackLimit = __StackTop - STACK_SIZE;&lt;BR /&gt; PROVIDE(__stack = __StackTop);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This results in the following GCC linker warning:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LPC54606J512_flash.ld:183: warning: memory region `m_data_3' not declared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code does not work since the stack is now undefined. As workaround I use the LPC54608J512 linker file which works but it is not the best solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2019 07:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPC54606-Undeclared-memory-region/m-p/860591#M1246</guid>
      <dc:creator>j3ll3</dc:creator>
      <dc:date>2019-03-03T07:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 Undeclared memory region</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC54606-Undeclared-memory-region/m-p/860592#M1247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jelle,&lt;/P&gt;&lt;P&gt;I will contact designer for this issue. I will keep you informed.&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:52:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPC54606-Undeclared-memory-region/m-p/860592#M1247</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-03-04T08:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54606 Undeclared memory region</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC54606-Undeclared-memory-region/m-p/860593#M1248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jelle,&lt;/P&gt;&lt;P&gt;This defect will be fixed in next release.&lt;/P&gt;&lt;P&gt;Thank you for bringing the problem to our attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 09:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPC54606-Undeclared-memory-region/m-p/860593#M1248</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-03-21T09:35:25Z</dc:date>
    </item>
  </channel>
</rss>

