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
I am seeing this issue when generating the project for the RAM configuration also, it is not limited to the FLASH configuration.
You can fix the linker file by hand and disable the linker file generation. See point 8 in USB or not: CDC with Processor Expert | MCU on Eclipse