<?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>Kinetis Design Studio中的主题 Re: Can't link bmp file</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662129#M8752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The console log is attached for when I changed TARGET(default) back to &lt;/P&gt;&lt;P&gt;OUTPUT_FORMAT(default) in the .ld file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no mention of "overflow" now, nor is there a .map file &lt;/P&gt;&lt;P&gt;generated.  But I do remember getting a .map file before, maybe in some &lt;/P&gt;&lt;P&gt;other trial and error attempt.  The .map file then showed m_data overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't remember all the details anymore, only that it is now working &lt;/P&gt;&lt;P&gt;with TARGET(default).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 01:35:25 GMT</pubDate>
    <dc:creator>michaelhuslig</dc:creator>
    <dc:date>2016-12-15T01:35:25Z</dc:date>
    <item>
      <title>Can't link bmp file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662125#M8748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the following ld code successfully on an earlier K22 project to link in the binary of a bootloader.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/********************************************/&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; m_boot&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(RX)&amp;nbsp; : ORIGIN = 0x00000000, LENGTH = 0x00008000&lt;BR /&gt;&amp;nbsp; m_interrupts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00008000, LENGTH = 0x00000400&lt;BR /&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00008400, LENGTH = 0x00077C00&lt;BR /&gt;&amp;nbsp; m_flash_nvm&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(RX)&amp;nbsp; : ORIGIN = 0x10000000, LENGTH = 0x00020000&lt;BR /&gt;&amp;nbsp; m_flex_ram&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(RX)&amp;nbsp; : ORIGIN = 0x14000000, LENGTH = 0x00001000&lt;BR /&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW)&amp;nbsp; : ORIGIN = 0x1FFF0000, LENGTH = 0x0000FC00&lt;BR /&gt;&amp;nbsp; m_stack&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(RW)&amp;nbsp; : ORIGIN = 0x1FFFFC00, LENGTH = 0x400&lt;BR /&gt;&amp;nbsp; m_data_2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW)&amp;nbsp; : ORIGIN = 0x20000000, LENGTH = 0x00010000&lt;BR /&gt;&amp;nbsp; m_bbram&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(RW)&amp;nbsp; : ORIGIN = 0xA0000000, LENGTH = 0x00080000&lt;BR /&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HEAP_SIZE&amp;nbsp; = 0xFC00;&lt;BR /&gt;STACK_SIZE = 0x0400;&lt;BR /&gt;M_VECTOR_RAM_SIZE = 0x0;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TARGET(binary)&lt;BR /&gt;INPUT(bootloader.bin)&lt;BR /&gt;OUTPUT_FORMAT(default)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Define output sections */&lt;BR /&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; .boot :&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bootloader.bin (.data)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp; } &amp;gt;m_boot&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; /* The startup code goes first into internal flash */&lt;BR /&gt;&amp;nbsp; .interrupts :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;/********************************************/&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I am trying to link a .bmp file in a KL33 project with no luck using the following link script:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/********************************************/&lt;/P&gt;&lt;P&gt;TARGET(binary)&lt;BR /&gt;INPUT(Icon.bmp)&lt;BR /&gt;OUTPUT_FORMAT(default)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Define output sections */&lt;BR /&gt;SECTIONS&lt;BR /&gt;{&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* The startup code goes first into internal flash */&lt;BR /&gt;&amp;nbsp; .interrupts :&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __VECTOR_TABLE = .;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP(*(.isr_vector))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Startup code */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp; } &amp;gt; m_interrupts&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .flash_config :&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP(*(.FlashConfig))&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Flash Configuration Field (FCF) */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp; } &amp;gt; m_flash_config&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .bitmaps :&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Icon.bmp (.data)&lt;BR /&gt;&amp;nbsp; } &amp;gt;m_text&lt;/P&gt;&lt;P&gt;/********************************************/&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first error of several I get is:&lt;/P&gt;&lt;P&gt;ZS.elf section `.data' will not fit in region `m_data'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have commented out the .bitmaps section, and even commented out the INPUT(Icon.bmp) line and still get the error.&amp;nbsp; So it must have something to do with the TARGET() and/or OUTPUT_FORMAT() commands?&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 22:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662125#M8748</guid>
      <dc:creator>michaelhuslig</dc:creator>
      <dc:date>2016-12-09T22:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't link bmp file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662126#M8749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;- The error message "`.data' will not fit in region `m_data'" , it shows the .data&amp;nbsp; overflow m_data section,&lt;/P&gt;&lt;P&gt;i think in your linker file , there is a section like :&lt;/P&gt;&lt;P&gt;.data:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&amp;gt;m_data&amp;nbsp;&lt;/P&gt;&lt;P&gt;So please send your linker file and .map file to me , or you can check the .map file by yourself to find&lt;/P&gt;&lt;P&gt;which data overflow , or too large .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Please pay attention to that, the memory map is difference between K22 and KL33 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-And i have a question , does these function out put to console or UART in your project ?&lt;/P&gt;&lt;P&gt;INPUT(Icon.bmp)&lt;BR /&gt;OUTPUT_FORMAT(default)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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>Mon, 12 Dec 2016 02:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662126#M8749</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-12T02:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't link bmp file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662127#M8750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/servlet/JiveServlet/download/328202-1-362661/Merging%20applications%20using%20Kinetis%20Design%20Studio.pdf" target="test_blank"&gt;https://community.nxp.com/servlet/JiveServlet/download/328202-1-362661/Merging%20applications%20using%20Kinetis%20Design%20Studio.pdf&lt;/A&gt; &lt;/P&gt;&lt;P&gt;to see where I originally learned how to merge a bootloader with my K22 &lt;/P&gt;&lt;P&gt;application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought it would carry over, but it didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TARGET, INPUT, and OUTPUT_FORMAT are ld script commands controlling &lt;/P&gt;&lt;P&gt;files that can be input to the gcc linker.  I got them from the "Merging &lt;/P&gt;&lt;P&gt;applications using Kinetis Design Studio.pdf" document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through trial and error, I was able to get the linker to work for the &lt;/P&gt;&lt;P&gt;KL33 project by changing the OUTPUT_FORMAT(default) command to &lt;/P&gt;&lt;P&gt;TARGET(default).  I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 22:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662127#M8750</guid>
      <dc:creator>michaelhuslig</dc:creator>
      <dc:date>2016-12-13T22:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't link bmp file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662128#M8751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;Thanks for your sharing, i have not test this tutorial.&lt;/P&gt;&lt;P&gt;For size of KL33 RAM is smaller than K22, so maybe the "OUTPUT_FORMAT(default)"&lt;/P&gt;&lt;P&gt;need more RAM usage,&amp;nbsp; so it overflow . In the error message, does it show what the size overflowed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 09:47:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662128#M8751</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-14T09:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't link bmp file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662129#M8752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The console log is attached for when I changed TARGET(default) back to &lt;/P&gt;&lt;P&gt;OUTPUT_FORMAT(default) in the .ld file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no mention of "overflow" now, nor is there a .map file &lt;/P&gt;&lt;P&gt;generated.  But I do remember getting a .map file before, maybe in some &lt;/P&gt;&lt;P&gt;other trial and error attempt.  The .map file then showed m_data overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't remember all the details anymore, only that it is now working &lt;/P&gt;&lt;P&gt;with TARGET(default).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 01:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662129#M8752</guid>
      <dc:creator>michaelhuslig</dc:creator>
      <dc:date>2016-12-15T01:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't link bmp file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662130#M8753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sent you the wrong console file.  Please do not publish it. This is &lt;/P&gt;&lt;P&gt;the correct on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 01:48:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662130#M8753</guid>
      <dc:creator>michaelhuslig</dc:creator>
      <dc:date>2016-12-15T01:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't link bmp file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662131#M8754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, any way , it work well now , congratulation !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 07:24:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-link-bmp-file/m-p/662131#M8754</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-15T07:24:25Z</dc:date>
    </item>
  </channel>
</rss>

