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.

CCS/CC2640R2F: Implementation of System_printf()

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hello,

I'm trying to implement a simple System_printf() to test the functionality of writing to the console. I've changed the .cfg file to include SysMin, included the preprocessor XDC references. I've implemented the System_printf() as shown below - basically "Hello, world" test. I don't get an output on the console. Suggestions would be appreciated.

  • Hi Patrick,

    Can you confirm that the debug string in in Tools->ROV->SysMin->OutputBuffer after you execute line 159 (System_printf). SysMin places the characters into an internal buffer. What is the size of this buffer (SysMin.bufSize in the .cfg)?

    Now for flushing to the IDE console...

    Which compiler are you using? TI or GCC? If you are using GCC, do you have semi-hosting enabled?

    Can you make sure you are looking at the CIO console. The drop-down in the console window lets you pick different consoles (e.g. build, CIO, etc.).

    Todd
  • Hi Todd,

    There is no directory "Tools->ROV->SysMin->OutputBuffer" as shown below.  I'm not sure what you mean by "after you execute line 159". I don't see a SysMin.bufSize in the .cfg file. I don't have a CIO console. I have CDT Global Build, CDT Build (ble5_simple_peripheral_app_oad_offchip), and ble5_simple_peripheral_app_oad_offchip. No CIO console.

    Sorry, I struck out on every question. Any other suggestions?

    P

  • Hi Patrick,

    Please review this SimpleLink Academy lab to see how to use ROV (either the new or old one): 

    You might be using SysCallback in the .cfg instead of SysMin. If you are using SysCallback, please move to SysMin. You can look in the kernel/tirtos/builds/CC2640R2_LAUNCHXL/debug/debug.cfg to see an example on how to use SysMin. 

    PATRICK OHARA said:
    I'm not sure what you mean by "after you execute line 159".

    Set a breakpoint at line 160 and run to it. Then check SysMin to see if it has any contents. 

    It looks like the CIO option does not come up until there is something there. For example, I output some data and now see this (along with the data)

  • Patrick,

    What's the status of this one?

    Todd
  • Hi Todd,

    I gave up. This capability is fundamentally required - would have been nice. I'm on to reading to and writing from off chip flash.

    Thanks anyway.

    Patrick
  • Hi Patrick,

    Thanks for getting back. I'm going to mark this as "TI thinks resolved" even though you did not getting it working. If you want to give it another shot, please add a post to this thread and we can give it another try.

    Todd