AnsweredAssumed Answered

Generating position-independent code for Kinetis KEA64 causes MCU to crash

Question asked by Erik Johnson on Apr 9, 2018
Latest reply on Apr 16, 2018 by Alcala Vazquez

When I add the -fpie option to the compiler command line and the -pie option to the linker command line, I can build fine, but no longer debug my application - launching debug results in the following error (after a successful build):

Error launching <snip>:
Can't find executable file. It may need to be rebuilt.

Running the application results in an immediate crash. However, without PIC turned on, the application compiles/runs/debugs fine (until I need to use the position-independent features)

Outcomes