AnsweredAssumed Answered

Fatal linker include error: no file or directory

Question asked by James Ward on Oct 5, 2016
Latest reply on Oct 7, 2016 by Harsh Patel

Hi, I'm new to the Kinetis Line of MCU's and the KDS Toolchain so forgive my ignorance about this relatively simple problem.

 

Any time I create a project, or modify a demo program to include a library file from the "includes" directory in the project structure, my include statements get marked as an error as the linker cannot apparently find the files I try to include. This also goes for header files from the SDK platform library, or even for my own application code files. Normally, eclipse itself can resolve my includes (I can hit Open Declaration and it opens the correct file), but it won't build at all.

 

Even more perplexing, on another project, I have used Processor Expert to generate driver code for me, and some of that generated code has the exact same issue (I didn't even touch it!). In this case, one of the generated files (Cpu.h) fails to include fsl_device_registers.h properly, or any other file for that matter.

 

When I build, I get this error in the console:

 

C:/Freescale/kl02_workspace/periph_test_proj/Generated_Code/Cpu.h:70:34: fatal error: fsl_device_registers.h: No such file or directory

 

If I comment out that inclusion, the it trips on the very next line, which includes "fsl_clock_manager.h".

 

I have tried adding folders to the includes list for the ARM C Linker/Compiler/Assembler in

Project -> Properties -> C/C++ Build

 

Setup:

Win 7 64 bit

Kinetis Design Studio 3.2.0, with KSDK 1.3.0 Eclipse Update

KSDK 1.3.0

KL02Z32 FRDM Board

 

Thanks for any tips and pointers you might have,

 

JW

Outcomes