AnsweredAssumed Answered

Linker File Problem K70 and MQX

Question asked by Ali2006 on Dec 28, 2015
Latest reply on Jan 15, 2016 by Hui_Ma

I'm utilizing Codewarrior 10.6 development studio and MQX 4.0 operating system.


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

kernal data.  The processor is an MK70FX512.. so I have 512K of Pflash, and 512K of D-Flash.. some of which is allocated to EEPROM.


We recently added USB host support to the file and are having problems with the resulting S19 file .  The problem is that the USB data is creating an initialization section in SRAM.  I am

utilizing a custom bootloader that does not expect S19 records to have SRAM addresses in them. 


We tried to create a ROM section for the USB data and then put it into the Rom Copy Table with no success. 


Attached are the two linker files.. SRAM Init.lcf creates an S19 record with data starting at the SRAM location  This file does create a working file as long as I remove

the offending lines that reference the SRAM addresses.


TrialA.lcf is my first attempt to solve the problem..  The resulting program loads with my bootloader but does not run.


Also.. our FlexRAM location also creates an initilization section at the 0x14000000 location in the S19 file.. Currently our bootloader does

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

at startup when required and do not need the compiler or bootloader to do that for us.  How do we tell it to make that data uninitialized?


Thanks in advance for your assistance.

Original Attachment has been moved to:

Original Attachment has been moved to: