<?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 Linker File Problem K70 and MQX in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Linker-File-Problem-K70-and-MQX/m-p/506074#M4277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm utilizing Codewarrior 10.6 development studio and MQX 4.0 operating system. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large application that is utilizing DDRRam for the main data memory and also uses the Sram data for the USB Host data, and the&lt;/P&gt;&lt;P&gt;kernal data.&amp;nbsp; The processor is an MK70FX512.. so I have 512K of Pflash, and 512K of D-Flash.. some of which is allocated to EEPROM. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We recently added USB host support to the file and are having problems with the resulting S19 file .&amp;nbsp; The problem is that the USB data is creating an initialization section in SRAM.&amp;nbsp; I am &lt;/P&gt;&lt;P&gt;utilizing a custom bootloader that does not expect S19 records to have SRAM addresses in them.&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to create a ROM section for the USB data and then put it into the Rom Copy Table with no success.&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached are the two linker files.. SRAM Init.lcf creates an S19 record with data starting at the SRAM location&amp;nbsp; This file does create a working file as long as I remove&lt;/P&gt;&lt;P&gt;the offending lines that reference the SRAM addresses.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TrialA.lcf is my first attempt to solve the problem..&amp;nbsp; The resulting program loads with my bootloader but does not run.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also.. our FlexRAM location also creates an initilization section at the 0x14000000 location in the S19 file.. Currently our bootloader does&lt;/P&gt;&lt;P&gt;ignore those addresses.. but it would be nice to know if there is a way to avoid having those locations in our file as well. .. We initilize the FlexRam&lt;/P&gt;&lt;P&gt;at startup when required and do not need the compiler or bootloader to do that for us.&amp;nbsp; How do we tell it to make that data uninitialized? &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your assistance.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337863"&gt;Sram-Init.lcf.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337863"&gt;TrialA.lcf.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Dec 2015 14:04:00 GMT</pubDate>
    <dc:creator>Ali2006</dc:creator>
    <dc:date>2015-12-28T14:04:00Z</dc:date>
    <item>
      <title>Linker File Problem K70 and MQX</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Linker-File-Problem-K70-and-MQX/m-p/506074#M4277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm utilizing Codewarrior 10.6 development studio and MQX 4.0 operating system. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large application that is utilizing DDRRam for the main data memory and also uses the Sram data for the USB Host data, and the&lt;/P&gt;&lt;P&gt;kernal data.&amp;nbsp; The processor is an MK70FX512.. so I have 512K of Pflash, and 512K of D-Flash.. some of which is allocated to EEPROM. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We recently added USB host support to the file and are having problems with the resulting S19 file .&amp;nbsp; The problem is that the USB data is creating an initialization section in SRAM.&amp;nbsp; I am &lt;/P&gt;&lt;P&gt;utilizing a custom bootloader that does not expect S19 records to have SRAM addresses in them.&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to create a ROM section for the USB data and then put it into the Rom Copy Table with no success.&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached are the two linker files.. SRAM Init.lcf creates an S19 record with data starting at the SRAM location&amp;nbsp; This file does create a working file as long as I remove&lt;/P&gt;&lt;P&gt;the offending lines that reference the SRAM addresses.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TrialA.lcf is my first attempt to solve the problem..&amp;nbsp; The resulting program loads with my bootloader but does not run.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also.. our FlexRAM location also creates an initilization section at the 0x14000000 location in the S19 file.. Currently our bootloader does&lt;/P&gt;&lt;P&gt;ignore those addresses.. but it would be nice to know if there is a way to avoid having those locations in our file as well. .. We initilize the FlexRam&lt;/P&gt;&lt;P&gt;at startup when required and do not need the compiler or bootloader to do that for us.&amp;nbsp; How do we tell it to make that data uninitialized? &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your assistance.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337863"&gt;Sram-Init.lcf.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337863"&gt;TrialA.lcf.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 14:04:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Linker-File-Problem-K70-and-MQX/m-p/506074#M4277</guid>
      <dc:creator>Ali2006</dc:creator>
      <dc:date>2015-12-28T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Linker File Problem K70 and MQX</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Linker-File-Problem-K70-and-MQX/m-p/506075#M4278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an application note &lt;A href="http://cache.nxp.com/files/soft_dev_tools/doc/app_note/AN4498.pdf"&gt;AN4498&lt;/A&gt;​ about common usage of CodeWarrior linker commander file for Kinetis product.&lt;/P&gt;&lt;P&gt;The chapter 5.2.4 (page 10) is about coping code and data from Flash to RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For customer is using FlexNVM for EEPROM feature, there already execute the Flash Program Partition command before.&lt;/P&gt;&lt;P&gt;The FlexRAM as EEPROM interface window doesn't need to be initialized.&lt;/P&gt;&lt;P&gt;When FTFE_FCNFG[EEERDY] bit is set, customer can access the FlexRAM directly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&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>Fri, 15 Jan 2016 07:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Linker-File-Problem-K70-and-MQX/m-p/506075#M4278</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-01-15T07:02:02Z</dc:date>
    </item>
  </channel>
</rss>

