AnsweredAssumed Answered

The case of the missing BCA (Bootloader Configuration Area:)

Question asked by Robert Poor on Oct 8, 2017
Latest reply on Oct 8, 2017 by Robert Poor

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:

...
S11380B09986000099860000998600009986000040
S11383C06B636667FFFFFFFFFFFFFFFFFFFFFFFF1A
S11383D001108813FFFFFFFFFFFFFFFFFFFFFE00F9
S11383E00000000000000000000000000000000089
S10783F00000000085
S113840010B5064C2378002B07D1054B002B02D066
...

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:

...
S11380B051D100002D9200002D9200002D9200005D
S113840010B5064C2378002B07D1054B002B02D066
...

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

Outcomes