<?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: How to play with linker file in Kinetis K20? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873307#M51972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Part no is:&amp;nbsp;&amp;nbsp;MK20DX256VLL7&lt;/P&gt;&lt;P&gt;2. Till date what my steps are:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;1. I have cut the code size by commenting the not necessary generated code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2. To save space I am loading configuration of 16K read from Device in SAP File, i.e., from address&amp;nbsp;0x10000000.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;:DEVICE NXP_K2x_K20DX256M7&lt;BR /&gt;:USESWD 1&lt;BR /&gt;CM C:\PEMicro\cyclone_max\supportFiles_ARM\NXP\K2x\freescale_k20dx256m7_pflash_dflash_eeprom.arp&lt;BR /&gt;EM ;Erase Module&lt;BR /&gt;SS E:\Project Sanket\11MAY16_OTAF_Bootloader.afx.S19&lt;BR /&gt;PA 3502 ;PARTITION&lt;BR /&gt;PM ;Program Module&lt;BR /&gt;VM ;Verify Module&lt;BR /&gt;SS E:\Project Sanket\InnovaModel1Proj.afx.S19&lt;BR /&gt;PR 8000 3FFFF&lt;BR /&gt;VR 8000 3FFFF&lt;BR /&gt;SS E:\Project Sanket\Flex_NVM2.s19&lt;BR /&gt;PR 10003000 10003FFF&lt;BR /&gt;VR 10003000 10003FFF&lt;BR /&gt;DE 2000&lt;BR /&gt;RE ;Reset&lt;BR /&gt;DE 2000&lt;BR /&gt;GO ;Run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Is disabling generated code or loading CFG from SAP causing issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2019 07:23:34 GMT</pubDate>
    <dc:creator>sanketkulkarni</dc:creator>
    <dc:date>2019-03-08T07:23:34Z</dc:date>
    <item>
      <title>How to play with linker file in Kinetis K20?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873305#M51970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K20 Kinetis on&amp;nbsp; Code warrior 10.4:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to make a SAP file for 32K bootloader and 224K Code size. But we are short on Code size and getting overflow error. How can I reduce Code size. I need around 16KB to free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. We have some configurations on Flash, and Some arrays declared as const, can we program them from sAP insted of Declaring in code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------&amp;gt;Others:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. We are trying to make a SAP file of bootloader of 32KB and 224 KB Code.&lt;/P&gt;&lt;P&gt;2. We have array of Image of 4K defined as constant, and is saved at 0x10003000 in Flash.&lt;/P&gt;&lt;P&gt;3. Any suggestions on saving space for array defined as const. which can save space.&lt;/P&gt;&lt;P&gt;4. Also, Can I program Flash range 0x10003000 using Program Range in cyclone ARM MAX Programmer.&lt;/P&gt;&lt;P&gt;5. We have 7-8 configuration of arrays on Flash, Can I program them by making .txt file out of configuration parameters, and then program it using SAP File using these text file.&lt;/P&gt;&lt;P&gt;6. also I have seen Linker file declared as ROM, can i use this for my goal in following linker script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEMORY {&lt;BR /&gt;m_interrupts (RX) : ORIGIN = 0x00008000, LENGTH = 0x000001BC&lt;BR /&gt;m_text (RX) : ORIGIN = 0x00008420, LENGTH = 0x00037BF0&amp;nbsp;&lt;BR /&gt;m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00010000&lt;BR /&gt;m_cfmprotrom (RX) : ORIGIN = 0x00008400, LENGTH = 0x00000010&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this? If you can give Practical examples of playing with linker would be great.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873305#M51970</guid>
      <dc:creator>sanketkulkarni</dc:creator>
      <dc:date>2019-03-06T17:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to play with linker file in Kinetis K20?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873306#M51971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.I K20 series has different memory size and various combinations. What is your k20 part number?&lt;/P&gt;&lt;P&gt;2.If your current code size isn't overflow too much, you can try higher optimize level like -O3 or -Os.&lt;/P&gt;&lt;P&gt;3.In the link file, there is such a item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_cfmprotrom (RX) : ORIGIN = 0x00008400, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;This is useless. In kinetis device, address 0x400~0x410 is flash configuration field. Hardware will read this field and take this as flash configuration. But it is no use to put it in 0x8400.&lt;/P&gt;&lt;P&gt;4. SAP file is defined by P&amp;amp;E. I think you'd better ask your question on P&amp;amp;E forum. They can give you better answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:04:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873306#M51971</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-03-08T07:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to play with linker file in Kinetis K20?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873307#M51972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Part no is:&amp;nbsp;&amp;nbsp;MK20DX256VLL7&lt;/P&gt;&lt;P&gt;2. Till date what my steps are:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;1. I have cut the code size by commenting the not necessary generated code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2. To save space I am loading configuration of 16K read from Device in SAP File, i.e., from address&amp;nbsp;0x10000000.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;:DEVICE NXP_K2x_K20DX256M7&lt;BR /&gt;:USESWD 1&lt;BR /&gt;CM C:\PEMicro\cyclone_max\supportFiles_ARM\NXP\K2x\freescale_k20dx256m7_pflash_dflash_eeprom.arp&lt;BR /&gt;EM ;Erase Module&lt;BR /&gt;SS E:\Project Sanket\11MAY16_OTAF_Bootloader.afx.S19&lt;BR /&gt;PA 3502 ;PARTITION&lt;BR /&gt;PM ;Program Module&lt;BR /&gt;VM ;Verify Module&lt;BR /&gt;SS E:\Project Sanket\InnovaModel1Proj.afx.S19&lt;BR /&gt;PR 8000 3FFFF&lt;BR /&gt;VR 8000 3FFFF&lt;BR /&gt;SS E:\Project Sanket\Flex_NVM2.s19&lt;BR /&gt;PR 10003000 10003FFF&lt;BR /&gt;VR 10003000 10003FFF&lt;BR /&gt;DE 2000&lt;BR /&gt;RE ;Reset&lt;BR /&gt;DE 2000&lt;BR /&gt;GO ;Run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Is disabling generated code or loading CFG from SAP causing issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:23:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873307#M51972</guid>
      <dc:creator>sanketkulkarni</dc:creator>
      <dc:date>2019-03-08T07:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to play with linker file in Kinetis K20?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873308#M51973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, K20DX256VLL7 has 32k data flash. If you don't use eeprom function, you can put a lot of data in it.&lt;/P&gt;&lt;P&gt;In PEmicro forum, there is several discuss on how to use SAP file, for example&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.pemicro.com/forums/forum.cfm?forum_id=-1&amp;amp;forum_topic_id=6602#c18945" title="http://www.pemicro.com/forums/forum.cfm?forum_id=-1&amp;amp;forum_topic_id=6602#c18945"&gt;PEmicro | Experts in Embedded tools for Flash Programming and Development&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 08:14:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-play-with-linker-file-in-Kinetis-K20/m-p/873308#M51973</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-03-08T08:14:33Z</dc:date>
    </item>
  </channel>
</rss>

