• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » BIOS » BIOS forum » not able to print values on console using System_printf()
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

not able to print values on console using System_printf()

This question is answered
Deepain Nayyar
Posted by Deepain Nayyar
on Apr 03 2012 04:04 AM
Intellectual285 points

Hi,

I am using CCS v5.0.1 and i am trying to get the outputs on console using System_printf().

The SYS/BIOS configuration i am using is

var SysMin 						= xdc.useModule('xdc.runtime.SysMin');
SysMin.bufSize = 4096;
SysMin.flushAtExit = true;
xdc_runtime_System.SupportProxy = SysMin;
By using the above configuration i am getting the outputs after System_flush() at the console, but i want the outputs at the console during runtime. 
I am using Swi and Hwi repeatedly in the system.
I have also tried the configuration
var SysStd 						= xdc.useModule('xdc.runtime.SysStd');
xdc_runtime_System.SupportProxy =SysStd;
Using this configuration, my system crashes.
Is there any way out to print the outputs on console during runtime environment ?
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Steven Connell
    Posted by Steven Connell
    on Apr 03 2012 12:59 PM
    Mastermind20540 points

    Hi Deepain Nayyar ,

    Which hardware platform are you using?  Also, which version of BIOS and XDC tools do you have?

    Thanks,

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Deepain Nayyar
    Posted by Deepain Nayyar
    on Apr 04 2012 00:08 AM
    Intellectual285 points

    Hi Steve,

    I am using multicore DSP EVM 6670.

    BIOS version is 6.32.01.38.

    XDC tools is 3.22.01.21

    Thanks,

    Deepain

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steven Connell
    Posted by Steven Connell
    on Apr 04 2012 16:12 PM
    Mastermind20540 points

    Deepain Nayyar
    Is there any way out to print the outputs on console during runtime environment ?

    You need to use RTA (Real Time Analysis) tools to do this.  Or, you could use UIA and System Analyzer.

    Have you seen section "8.6 RTA Tools in CCS" of the SYS/BIOS User's Guide?

    This section explains how to configure your application and use the RTA tools to view real time log data in SYS/BiOS 6.32.

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • RAHUL SHARMA91013
    Posted by RAHUL SHARMA91013
    on Apr 05 2012 01:58 AM
    Prodigy235 points

    Hi Steven 

    I am facing a similiar problem. I am using C66xx and including RTDX module gives an error of unsupported with c66x.

    As  i understand RTA (Real Time Analysis) tools further require RTDX to send output to the host from target buffers. 

    Does that mean RTA functionality is not supported on my DSP ?

    Thanx in advance

    Regards

    Rahul Sharma

     

    dsp RTDX
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steven Connell
    Posted by Steven Connell
    on Apr 05 2012 14:23 PM
    Mastermind20540 points

    Rahul Sharma,

    Which version of BIOS are you using?  Unfortunately, RTDX is no longer supported...

    Another option is to use SysMin.  Please refer to the following thread which is closely related to this discussion:

    http://e2e.ti.com/support/embedded/bios/f/355/t/112423.aspx#398393

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • RAHUL SHARMA91013
    Posted by RAHUL SHARMA91013
    on Apr 09 2012 00:15 AM
    Prodigy235 points

    Steven ,

    Sorry for the late reply !!

    I am using SYS/Bios version 06.32.01.38.

    I observe that UIA has na option to show prints in the runtime through JTAG transport and  i also found on profiling that it takes quite less cycles.

    what do u think which would be better to use -SysMin or UIA ?

    regards

    Rahul Sharma

    RTDX SYS/BIOS
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ToddMullanix
    Posted by ToddMullanix
    on Apr 09 2012 11:08 AM
    Genius15570 points

    Rahul,

    There are a several ways to get the Log output with UIA.

    1. Via ROV

    2. System Analyzer and halting the target

    3. For 66xx, there is a runmode option for UIA that System Analyzer supports (this does not require you halt the target)

    4. You can use a non-JTAG transport (e.g. Ethernet) to get the Log event off during runtime.

    Which version of CCS and UIA do you have? Which method would be most beneficial to you? Are you interesting in SYS/BIOS logging or not? (SYS/BIOS logging enables execution graph in System Analyzer).

    Note: UIA/System Analyzer is for Log data, not System_printf data. As you noted, Log calls have a lower overhead than System_printf calls.

    Todd

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • RAHUL SHARMA91013
    Posted by RAHUL SHARMA91013
    on Apr 10 2012 05:11 AM
    Prodigy235 points

    Todd,

    Thanks for the reply.

    1. I am using CCS version 5.1.1.00031 and UIA version 1.0.3.25.

    2.  I think  runmode option for UIA would be more beneficial.

    Rahul 

    SYS/BIOS
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ToddMullanix
    Posted by ToddMullanix
    on Apr 10 2012 10:59 AM
    Verified Answer
    Verified by David Friedland
    Genius15570 points

    Rahul,

    First make sure that you have UIA included in your project.

    Next, add the following lines into your .cfg file

    var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
    LoggingSetup.eventUploadMode = LoggingSetup.UploadMode_JTAGRUNMODE;

    This will create loggers for SYS/BIOS, Load and Main (your code). There are more setting in LoggingSetup (e.g. disable SYS/BIOS logging, size of the buffer for the Load's logger, etc.), but let's get this working first. Remove any LoggerBuf configuration you have.

    Rebuild your app and then load/run it. You can now open Tools->System Analyzer->Live. It should auto-detect that your app is setup for runmode. You probably want to change one setting on this page. Instead of collect for 5 seconds, change it to collect until halted.

    Once you run System Analyzer, you should start getting Log events in the Log view. Please refer to the UIA Getting Started Guide or User Guide for more details about the features in System Analyzer.

    If you want to do stopmode, use UploadMode_JTAGSTOPMODE instead. The records will be read from the target when the target is halted. With the version of CCS, you probably have to close and restart System Analyzer each time you reload you application.

    Todd

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use