Tool/software: Code Composer Studio
Starting with CCS 6.1, and a BBB tethered to a Backhawk V100... I create a simple "Hello" project with the wizard. (It fails to compile because of some floating point issue... "vfpv3" I fix that).
I compile, load it, debug it. No problem.
The project also included PDK am335x 1.0.5 and NDK 2.25.1.11 (yes, I added them, I hope to start learning those suites). So I decide to add some GPIO to the little test project.
I am using the only doc that I can find: "C:/ti/pdk_am335x_1_0_5/packages/API_Documentation.html" (As lacking as it is...)
I add a simple #include <GPIO.h>.. Nope. Fails to find that header file. I start digging...
I do have a defined variable: COM_TI_PDK_INSTALL_DIR pointing to C:\ti\pdk_am335x_1_0_5. But that not where the header file is, it's deeper. However to complicate things, that "predefined variable" (or whatever CCS calls it) isn't in my include path anyway. The only one in my include path is "${CG_TOOL_INCLUDE_PATH}" Except that it's not defined anywhere in the "Linked Resources" tab....???? What is going on here???
First question: Where is the header file and how is it "properly" included relative to these "Linked Resources"? How is it supposed to be found when none of the defined macros match the include paths passed to the compiler?? How do those "Linked Resources" stitch together. Because I HAVE READ THE CCS TUTORIALS, and this is how I was under the impression was supposed to function.
Next, I do a search, and HARDCODE the path to that file, just to get it to compile. So then I add one of those GPIO calls from the documentation (You can imagine where this is going...) Next, of course, the linker can't find it either. I get a "undefined reference to `GPIO_init' "
Next question: Where are the libs that contain this call? What is the lib name?
The doc file "C:/ti/pdk_am335x_1_0_5/packages/API_Documentation.html" says absolutely NOTHING about where these headers and libs are, or even what the name of the lib file is. It barely gives adequate explanations of the functions themselves.
And, since I'm posting this question because the documentation is so lacking... In expectation that the NDK suite will have the same problems, can someone also answer those questions about the NDK as well?
Because none of this is fitting together like a "normal" project, like the kinds I have built with makefile over the past 25 years.
Last question: Is there a real document that explains what libs to link to when using the PDK, NDK, (or maybe xdias, uia, or other suites I may try in the future)?
-CSW




