This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2650STK: How to display Display_print0 information cc2650 sensortag

Part Number: CC2650STK
Other Parts Discussed in Thread: CC2640, CC2640R2F

Tool/software: TI-RTOS

Hello,

I am working on the SensorTag and have been trying to figure out the best way to display printf like commands for the better part of a week. The problem I have is that printf uses too many resources causing any BLE functionality to fail before it even makes a connection. The best case is when BLE does start and advertises; however, any connections made result in disconnect. This all seems to stem from the printf statements that I am logging to the console in CCS. 

I am now looking into Display.h but cannot seem to figure out where the display is being routed to.

I am currently debugging using the Debugger DevPack Rev:1.3.0

I have tried to follow this documentation but have not had any luck. 

dev.ti.com/.../

Any help would be awesome,

-Thom

  • Hello,

    If you are using the display driver, You are probably printing out through the UART terminal.

    You will need to open up a connection with the UART com port using a terminal such as tera term

    Regards,
    AB
  • I think I read somewhere on another forum post that opening up a connection with with UART com port isn't possible or doesn't have that functionality built into the cc2640 SensorTag. But at any rate I have tried to connect several different times. It is difficult for me to know if it is running correctly because I believe I don't have the luxury of a reset button like I did on the cc2640R2F launchpad.

    I am currently running putty and have tried to connect on COM 7 and COM 8 as those are COM's that show up. Then 9600, 8/n/1, None for everything else.

    Sensortag.c:
    #include <ti/mw/display/Display.h>

    dispHandle = Display_open(Display_Type_UART, NULL);
    Display_print0(dispHandle, 0, 0, "HELLO WORLD");

    Building the sensortag stack and app project result in nothing displayed.

    It's fine if this isn't a possibility it would just be nice to figure out a workaround. I am wildly new to embedded systems and am struggling with a bunch of the concepts.
  • Update: I can get a connection through COM 8 at 115200, 8/n/1 but only on the Display example on ccs cloud. Currently I am unable to add the Display_printf functionality to the SensorTag or SimplePeripheral examples
  • Hello Thom,

    Check inside the project properties and make sure that in the linker settings you have the display library in it.

    Regards,
    AB
  • It was a preprocessor setting that I didn't know about. I just needed to remove Display_DISABLE_ALL and everything displayed correctly.

    This can be found under Properties -> Build -> ARM Compiler -> Predefined Symbols.

    Thanks