Hello,
In a KDS projects I would like to tell the compiler where to look for include files. When I add a path in the C/C++ settings "Include Paths (-I)", I would like to point it to a folder that has all my include files. The folder will have sub folders that I would like to tell the compiler to look at. Is there a way to tell KDS to automatically look in all the subfolders in a folder pointed to? Adding a path for every sub folder is tedious.
Thanks
解決済! 解決策の投稿を見る。
Hello Matt:
There is no need to copy all KSDK .c files. The package contains library projects for different toolchains including KDS, which produce a library object file (.a) so you can reference it from your own project. Hence with KSDK v1.1 you only need a few include paths for a bareboard project:
If you are starting with KDS and Kinetis SDK I recommend you to follow the next guide:
Writing my first KSDK Application in KDS - Hello World and Toggle LED with GPIO Interrupt
Now if you are really not convinced about the library mode, yes there is a way you can "point" to .c files. Check the next tutorial:
Link to Files and Folders in Eclipse | MCU on Eclipse
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Matt Lang:
The same question was answered by colleague Erich Styger in the next thread:
Unfortunately you need to have every folder in the include paths.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Is there a quick and easy way to get the whole KSDK into your project? Preferably just to reference the KSDK folder so my project file does not get to big. Or do I have to add every folder for all the includes and add every .c file into my project manually? Can I have the compiler point to .c files like the .h files? Instead of making a local copy of all the .c files in the KSDK?
Hello Matt:
There is no need to copy all KSDK .c files. The package contains library projects for different toolchains including KDS, which produce a library object file (.a) so you can reference it from your own project. Hence with KSDK v1.1 you only need a few include paths for a bareboard project:
If you are starting with KDS and Kinetis SDK I recommend you to follow the next guide:
Writing my first KSDK Application in KDS - Hello World and Toggle LED with GPIO Interrupt
Now if you are really not convinced about the library mode, yes there is a way you can "point" to .c files. Check the next tutorial:
Link to Files and Folders in Eclipse | MCU on Eclipse
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------