Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hello,
(First off, that cute little "Ask a related question" doesn't work. It just takes me a an empty screen, with a title, and that nav area on bottom...)
Two projects. One uses "System_printf" and it works fine. An older Sys/Bios project that was doing USB stuff. So I import a new demo project "MMCSD" in order to learn it's use. Well, it uses
#define MMCSD_log UART_printf
(Why someone felt the need to obfuscate UART_printf by hiding it in header, and defining it as something else, is beyond me...)
Well, any messages are not showing up on the CCS console, like the older project. So I replace the "MMCSD_log" with "System_printf"... Opps. Now it tells me "undefined reference to `UART_stdioInit'"
So I do the logical thing. I go into the MAP file of the one that works, and search for "UART_stdioInit" After all, any NORMAL programmer would figure that they could use the map file to find out how it was linked, and then figure out how to add that library. Well, nope. It doesn't exist it the map file.
So, either it's not really needed by the older project that works, and the new project suddenly THINKS it needs it, or, yet again, someone decided to obfuscate it by changing it's name in some header file (after all, that was also done with System_printf deep in some header file)
#define System_printf xdc_runtime_System_printf
(But at least a text search can find it)
So, the working project uses "System_printf" without any linker error, but the new demo project when I try to use "System_printf" for some reason thinks it needs to link this in.
I tried e2e.ti.com/.../395152
But that line is ALREADY in my CFG file of the new demo project that doesn't work. So that is NOT the answer.
What is the magic, secret to simply adding a "System_printf" and not causing linker errors? Because (again, I am complaining) the XGCONF and SYSYBIOS tools are hiding any ability to control the build environment, and anytime I try to think outside the restricted world of XGCONF, it fails miserably. And documentation is a nightmare to find...
(Any time I try to deviate from the narrow path of the examples, my blood pressure goes way up...)
I have included the ZIP of the project that has the source and the CFG, and anything else...