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.

MSP430F5529 simple printf with CIO question

Other Parts Discussed in Thread: MSP430G2553, MSP430F5529

Hello,


I have been looking for ways of printing debug information, without not using or configuring a serial device on the launchpad.

In CCS, when we start a new project, and choose hello world example we get the following code:

#include <stdio.h>
#include <msp430.h> 

int main(void) {	
    WDTCTL = WDTPW | WDTHOLD;
    printf("Hello World!\n");
    return 0;
}

So I have read the document at http://processors.wiki.ti.com/index.php/Printf_support_for_MSP430_CCSTUDIO_compiler

  • Sorry, the above post was cut in half.

    So I followed the documentation at the given link above, make sure printf is configured to minimal, and CIO is enabled at debug configuration.

    However I still see nothing, when I debug the program on the console. Also, The console does not have a CIO select button, like it shows in some documentation pictures. (there is a button where you can select the console output, CDT global, CDT build, and HelloWorld are the available options in my CCS.

    I first tried this on msp430g2553 LP, then it would not compile due to program not fitting in memory, so I swapped to a 5529 board. I have no memory warnings or problems with the current LP (5529)

    Any ideas recomendations or help are greatly appreciated, I just want to printf to console, without using the serial port.
  • Hello,
    Please specify the exact CCS version you are using. For example, the latest version of CCS is 6.1.1.00022. Are you using that version?

    Thanks
    ki
  • Hello,
    Yes I am using 6.1.1.00022 versionl.
    Best Regards,
    C.
  • I tried your code with CCSv6.1.1.00022 and MSP430F5529 and printf worked. Did you set the heap size to 320 as mentioned in that wiki article?

  • thank you this work, I had omitted to do this.