AnsweredAssumed Answered

Processor Expert is generating a .lcf file that is failing.   How do I fix it?

Question asked by Stephen Munnings on Nov 28, 2013
Latest reply on Nov 28, 2013 by Erich Styger

I am generating a "Bareboard" project using Processor Expert.

(This will be  a bootloader program, and this is why it is bareboard)

I have configured the system, and am generating the project (as is - no user code yet) using the FLASH configuration.

 

I am getting the linker warning:

>Segment m_data have to begin at address aligned to 512

>Please align ORIGIN of m_data segment to 512

 

The relevant part of the .lcf file is:

 

KEEP_SECTION { .vectortable }

KEEP_SECTION { .cfmconfig }

 

MEMORY {

  m_interrupts (RX) : ORIGIN = 0x1FFF0000, LENGTH = 0x000001E0

  m_text      (RX) : ORIGIN = 0x20000000, LENGTH = 0x00010000

  m_data      (RW) : ORIGIN = 0x1FFF01E0, LENGTH = 0x0000FE20

  m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

}

 

Can I just ignore this warning?  (I don't expect so)

If not, how can I correct this situation?

 

I cannot just modify the .lcf file, as it is generated - as seen in the header section..

 

Using CW 10.5

Outcomes