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.

C2000 printf without OS

Other Parts Discussed in Thread: TMS320F2812, CONTROLSUITE

hi,

Now I am using TMS320F2812, CCS4 to develop SW, no OS. I want to use "Printf" to ouput the data when my Mircochipset is running. When excute "Printf" function, the RS232 port will send out the data just as PC. My question is,  if the above solution is ok without OS? If yes, any source code for C2000? If no, how to realize for C2000?

 

Any reply is appreciated.

 

Best regards,

Kent

  • Hi Kent,

    What exactly are you looking for? Just outputting data from C2000 to pc or anything special?

    Regards,

    Gautam

  • kent gu said:
    When excute "Printf" function, the RS232 port will send out the data just as PC

    By default the output from printf is displayed in the CCS CIO console, and requires the debugger to be running to capture the output. See Using printf() to output to a user-defined device for some information on how to re-direct the output from printf to a device such as a UART.

  • Hi Kent,

    I suppose you are looking for an example of programming the chip(s) for UART communication?

    In this case I would

    - make sure you have ControlSUITE installed and check the examples

    - these examples come from the C2000 group - > Try that forum

    - download a UART sniffer of some variety which would work in your application or ... yes as a first step send the data to the PCs own port.  This is different however than debug messages communication with the Console.

    Best Regards,

    Lisa