AnsweredAssumed Answered

kinetis with fPIC (position independent code)

Question asked by Josh Jordan on Nov 28, 2014
Latest reply on Nov 12, 2015 by JONATHAN WONG

Enabling -fPIC in kinetis design studio results in this error:

 

c:/freescale/kds_1.1.1/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: section .got loaded at [000012bc,000012cf] overlaps section .romp loaded at [000012bc,000012df]

 

I'm using kds 1.1.1 with FRDM-K22F, project has ksdk disabled and processor expert enabled.  Is there a way to use -fPIC or otherwise compile for position independent code on kinetis?  If not, is there a way to compile code to be placed in a specific flash address?  I'm trying to implement a bootloader.

Outcomes