Other Parts Discussed in Thread: CC2650
Hello experts,
I'm trying to add debug logging with printf to the CC2650STK SensorTag default app and have followed instructions given here: e2e.ti.com/.../1778526
I didn't get any log output.
Then I tried with the uartecho_CC2650STK_TI_CC2650F128 default project, and I get the printf messages from that in the CCS console. I've tried to figure out what the difference is and have concluded that I need to add/initialize the UART.
In main.c of the SensorTag default app, I added:
#include <xdc/std.h>
#include <xdc/runtime/System.h>
#include <ti/drivers/UART.h>
...and changed the main function like this (just added the UART_init(); call, see below)
int main()
{
PIN_init(BoardGpioInitTable);
#ifndef POWER_SAVING
/* Set constraints for Standby and Idle mode */
Power_setConstraint(Power_SB_DISALLOW);
Power_setConstraint(Power_IDLE_PD_DISALLOW);
#endif // POWER_SAVING
/* Initialize ICall module */
ICall_init();
/* Start tasks of external images - Priority 5 */
ICall_createRemoteTasks();
/* Kick off profile - Priority 3 */
GAPRole_createTask();
/* Kick off application - Priority 1 */
SensorTag_createTask();
SensorTagTmp_createTask();
SensorTagHum_createTask();
SensorTagBar_createTask();
//added by me:
UART_init();
BIOS_start(); /* enable interrupts and start SYS/BIOS */
System_printf("Hello World :)");
System_flush();
return 0;
}
The problem is that I get this linker error:
undefined first referenced
symbol in file
—------- —------------—
UART_init ./Startup/main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "SensorTag.out" not built
» Compilation failure
gmake: *** [SensorTag.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
I'm I on the right path to get this working? What do I need to do to solve the problem?
Do I even need to add the UART initialization?
What about this line from appBLE.cfg, could this be reason I get no logs?
/* no logging - all compiled out */
BIOS.logsEnabled = false;
Your help will be appreciated, cheers,
Florian