I've prepared a project along the lines discussed in How To Adapt KDS Applications for KBOOT Bootloader.
Actually, I've prepared two, and the first one works and the second one doesn't.
Although both projects have identical .ld files, the working project successfully includes the Boot Control Area in the .srec file, the other project for some reason doesn't include the BCA. Here's a snippet of the "good" .srec file: you can see the BCA starting a 0x83c0 ('6B 63 66 67 ...'), followed by the .text section at 0x8400:
My other project uses the identical .ld file and identical bootloader_support files (containing the BCA fields), yet produces the following .srec file. As you can see, it doesn't include any records at 0x83c0:
Can you think of any reason the BCA is not getting linked in?
I'm attaching the .ld file as well as the bootloader_support.[hc] files used in both projects.
Original Attachment has been moved to: bootloader_support.c.zip
Original Attachment has been moved to: bootloader_support.h.zip
Original Attachment has been moved to: MKL27Z64xxx4_flash.ld.zip