Ping,
did you read this part of my post:
The proposed offset is not large enough to leave enough to fill all the ISR vectors on a Cortex-M controller defined in thestartup file.
The NXP default linker scripts propose 0x400 bytes for the vector table.
this has nothing to do with the application offset!
the problem is, that the BCA (0x3c0) is placed inside the vector table (occupies space until 0x400). this is not a problem if you:
- reduce the size of the vector table (not shure how long it really has to be, but 256 vector seem a lot to me) or
- change the BCA offset. but this would render the KinetisFlashTool useless.
sorry to have confused you, but I am not talking about a flash loader. if at all, then about a flash resident bootloader (kboot) for which the BCA structure is relevant.
so my question remains: what is the proposed solution?
the application linker script looks like this:
/* Specify the memory areas */
MEMORY
{
m_interrupts (RX) : ORIGIN = 0x00020000, LENGTH = 0x000003C0
m_bootloader_config (RX) : ORIGIN = 0x000203C0, LENGTH = 0x00000040
m_flash_config (RX) : ORIGIN = 0x00020400, LENGTH = 0x00000010
m_text (RX) : ORIGIN = 0x00020410, LENGTH = 0x001FFBF0
m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00030000
}