Hi,
i'm using K20DX256 (complete D-Flash for program code) and KDS (generated linker file) with the following memory configuration:
MEMORY {
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0 // P-Flash
m_text_10000000 (RX) : ORIGIN = 0x10000000, LENGTH = 0x00040000 // D-Flash
m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000
m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000
m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
}
Since we need most of RAM and ROM we experienced an overflow of the initialized data beyond the P-Flash at 0x40000.
Here are my questions:
Is it possible to make the linker fail (special linker instruction) in case the initialized data goes beyond the P-Flash, but m_text and m_data boundaries are okay?
Original Attachment has been moved to: overflow.zip