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.

CC2650MODA: printf to CCS console??

Part Number: CC2650MODA

Hello. I'm really struggling to get started with the SimpleLink product line.

I'm trying to get any kind of serial/logging output from the device back to a console. I was able to get UART working, but can't find any easy to way to send printf style debugging to it.

I've read the various fragments of scattered documents all over the TI site that seem to indicate that printf() will log to the CCS console on transmission of \n or calling fflush(stdout), but I can't get it to send/log anything.

Here is an example code:

int count = 0;

int main(void)
{

    printf("Hello %d %f \n ", 2, 10.5);
    printf("\n\r ");

    while(1){
        count++;
        printf("hello %d world\n\r ", count);
        fflush(stdout);
    }
}

This is not producing any output in Console in CCS. This is all I see logged to Console:

Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
Cortex_M3_0: GEL Output: Board Reset Complete.


I went down the rabbit hole here, but it was no use. I couldn't get anything to compile by including Display.h
https://dev.ti.com/tirex/explore/node?node=ANqagjxZxWnBRB7bx0EnOw__pTTHBmu__LATEST


This has been the most frustrating processor to get running that I have used in 10 years. I have a ton of experience with PIC. I've been at this for weeks just trying to get a bare metal UART running and basic debug. The next couple weeks will be spent trying to trick CCS into performing a delay() function, then I'll be 10% of the way to the functionality of an Arduino. Laughing

Thanks in advance for any help. I'm sure I'm missing something silly.

  • Hi,

    Thank you for reaching out.

    Strictly speaking, there is no "console log" functionality on the CC2650MODA device. In other words, you should not expect to find a way to get some messages displayed by the devices after "Cortex_M3_0: GEL Output: Board Reset Complete."
    The easiest way to achieve what you want is probably to use the UART.
    If you want to avoid using the UART, then some pretty interesting debugging features are baked within CCS. You can review our debugging guide for more details.

    I hope this will help,

    Best regards,