• 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 » Can't enable RTA
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

Can't enable RTA

This question is answered
jianbin tang
Posted by jianbin tang
on Apr 04 2012 01:27 AM
Intellectual290 points

Hi,

Platform: C64+ DSP

CCS 4.2.4

BIOS 5.41

Emulator:  560V2 (without system trace)

I followed the instruction in:

http://processors.wiki.ti.com/index.php/DSP/BIOS_Real-time_Analysis_(RTA)_troubleshooting#Trace_must_be_enabled

Here are the last part of my TCF:

bios.GBL.ENABLEINST = 1;
bios.GBL.ENABLEALLTRC = 1;
bios.RTDX.ENABLERTDX = 1;
bios.HST.HOSTLINKTYPE = "RTDX";

bios.enableRealTimeAnalysis(prog);
bios.enableRtdx(prog);
prog.module("GBL").ENABLEALLTRC = true;

I only see the following figures, but no any data was reported during the DSP runing or after DSP is halted.

Thanks a lot for your help!

Tang

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Jon Blake
    Posted by Jon Blake
    on Apr 24 2012 12:13 PM
    Intellectual1440 points

    Hi Jianbin,

    Any update from your side?  Would you like to try to continue to get this working?

    Regards,

    -Jon

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jianbin tang
    Posted by jianbin tang
    on Apr 30 2012 01:47 AM
    Intellectual290 points

    Jon

    Sorry for late repsonse! I just came back from vacation.

    After apply your suggested modification, the followoing warning was removed:

    TMS320C64+: RTDX: Not a valid RTDX program:  RTDX protocol (JTAG) does not match CCS setup (SIMULATOR)

    And I can see the CPU load like

    I can also see the see raw log. But I dont' know why  "exec graph" was disabled?

    Thank you!

    Jianbin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jianbin tang
    Posted by jianbin tang
    on Apr 30 2012 01:57 AM
    Intellectual290 points

    Jon:

    Using the same project, I also tried to use other C64+plus simulator they are both fine! It shows that my CCS works normally, right?

    Back to my own prj. Not like your project, actually, I build my own project start from a empty BIOS project, not start with a RTA suppotted project. I wonder should I New a project with RTA support? Or can I add the RTA function into my current project?

    Thanks!

    Jianbin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jon Blake
    Posted by Jon Blake
    on Apr 30 2012 18:18 PM
    Intellectual1440 points

    Hi Jianbin,

    That's good.  We now know that RTA is working with a basic example in your CCS.

    The exec graph is only supported in SYS/BIOS 6, not DSP/BIOS 5.  That is why it is greyed out.

    Is it possible for you to attach the .tcf file from your project to this post so that I can take a look at it.  I think we can get RTA working with your project but I need to see what is currently configured.

    Regards,

    -Jon

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jianbin tang
    Posted by jianbin tang
    on Apr 30 2012 22:51 PM
    Intellectual290 points

    Jon:

    Go back to my own project, I tried to clean the prj as much as possible. Then I can see Raw Log, like:

    But still have 2 problems

    1: why I can only see the trace which I printed in the program? I can see them in the ROV also.

    2: I still can't the see the CPU load figure. I really want to know the CPU load.

    Jianbin

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jon Blake
    Posted by Jon Blake
    on May 01 2012 19:45 PM
    Intellectual1440 points

    Hi Jianbin,

    Is it possible for you to attach your tcf file?  This file will help me debug your issue.

    Is the information from the RTA raw logs in real time or stop mode?   For example,  is the data showing up when the program runs or does it show up after you halt the program?

    CPU load will not show data in stop mode.

    If that's the case, you may want to take an alternative approach to get the cpu load.  There is a file load.zip that may help you and these two posts explain that approach.

    http://e2e.ti.com/support/embedded/bios/f/355/t/84784.aspx

    http://e2e.ti.com/support/embedded/bios/f/355/t/52290.aspx

    Regards,

    -Jon

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jianbin tang
    Posted by jianbin tang
    on May 01 2012 23:18 PM
    Intellectual290 points

    Hi,  Jon

    Here is the TCF file

    0434.Test.zip

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jon Blake
    Posted by Jon Blake
    on May 03 2012 19:12 PM
    Intellectual1440 points

    Hi Jianbin,

    I still need to know if you were seeing the RTA for trace in real time or stop mode( i.e., when the program is halted)?

    Also, can you please confirm that you are hitting an idle function in your program?  Can you put a break point on the idle function, run the program and let me know the results?

    Regards,

    -Jon

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jianbin tang
    Posted by jianbin tang
    on May 04 2012 00:23 AM
    Intellectual290 points

    Jon

    In real time, I didn't  see anything

    When stopped in the breakpoint, I can see the rawlog, which I've already pasted to you before.

    In the current BIOS system, I created 2 tasks staticaly, which you can see in my TCF file.

    Task structure like:

    {

    for(;;)

    {

    Sem_pend(some semophore);

    // process, the process only need 1/3 CPU time

    }

    }

    I never go into idle function. How to go to idle? Thanks!

    Jianbin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jon Blake
    Posted by Jon Blake
    on May 04 2012 13:09 PM
    Intellectual1440 points

    Hi Jianbin,

    In the assembly window search for IDL_F_loop

    Put a breakpoint on this symbol:

    IDL_F_loop

    Then before or after your Sem_pend add a task sleep.

    TSK_sleep(6);

    You should hit the breakpoint and see RTA output.

    Let me know if this works.  I think the problem is that you are never hitting the idle loop.

    Regards,

    -Jon

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jianbin tang
    Posted by jianbin tang
    on May 11 2012 01:22 AM
    Intellectual290 points

    Dear Jon

    Actually I only have 3 tasks which will not occupied all the DSP and I always use SEM_pend(&SemObjUlDmaFinished, SYS_FOREVER), which I think could let DSP go to Idle when waiting the SEM, right?
    As you said, I put a breadpoint in the "IDL_F_loop", you can see it can be hit!

    Later I tried only use tsk_sleep in the task, like:

    // put to higher priority
    VOID UlSlotProcess()
    {
    #if 0

    for(;;)
    {
    SEM_pend(&SemObjUlDmaFinished, SYS_FOREVER);
    LOG_printf(&trace, "UL TASK, No %d Symbol DMA finished at %d us",gusTxSeq,TSCL/800);

    if ((gcTxSymCnt+1)%3==0)
    {
    LOG_printf(&trace, "UL %dth Slot at %d us",gcTxSymCnt/3,TSCL/800);
    }
    }
    #else
    TSK_sleep(6);
    #endif
    }

    The  phonomenon is same. I couldn't see CPU load. I can only see the raw log just like what I pasted previously.

    Thanks 

    Jianbin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • judahvang
    Posted by judahvang
    on May 11 2012 11:07 AM
    Genius16715 points

    Jianbin,

    At this point, can you try out one of the easy BIOS examples to see if you get RTA information.

    I would recommend maybe the stairstep example.  Lets first try to see if you can get any RTA from a known example that is working.

    Then, if you do, there's something wrong with your example.  If you don't then it could be a board issue or something with CCS.

    Judah

    If my reply answers your question please mark the thread as answered

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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