• 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 » Microcontrollers » Hercules™ Safety Microcontrollers » Hercules™ Safety Microcontrollers Forum » Non-intrusive emulator access to RAM
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

Captured to Non-intrusive emulator access to RAM wiki page Recapture

Non-intrusive emulator access to RAM

This question is answered
Jeff Stafford
Posted by Jeff Stafford
on Mar 24 2010 09:31 AM
Intellectual1085 points

For motor control applications there is a need to access RAM variables with the inverter energized and the motor control application ISR running.  This access needs to be within CCS to allow tuning of the regulator variables from a Watch Window and for graphing variables.

C2000 has this today and calls it JTAG real-time mode.  A bit in the status register is set to enable this mode, so it is hardware based communication through JTAG.  The emulation logic is lower priority than the CPU so there is NO instrusiveness to the CPU program.  Real-life situation can be a DC bus voltage of 375V with PWMs switching and with a good board layout,  JTAG communication will provide updates to CCS on "real-time" variables.

Is real-time mode JTAG support with TMS570?  If not JTAG, then what alternative communication port is avaiable and what hardware and software tools support the alternative ports?

Thanks, Jeff

debug non-breakpoint debug motor control real-time JTAG CCS
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Anthony Vaughan
    Posted by Anthony Vaughan
    on Mar 25 2010 10:35 AM
    Verified Answer
    Verified by Prathap
    Intellectual1275 points

    The TMS570 architecture supports JTAG access to RAM and peripherial registers though a minimaly invasive procedure using the DAP's (Debug Access Port) AHB interface.  The procedure to setup Code Composer Studio v4.x (CCS) to perform accesses using the TMS570 DAP is shown below. 

    Step 1: Setup the CCS Debug window to view non-processor devices (including the DAP).
    To do this, first launch the CCS debugger from the debug perspective.  Then choose 'Window -> Preferences' from the CCS File menu as shown in the picture below:

     

    Then in the Preferences window select 'CCS -> Debug' and enable the 'Show non-processor devices (i.e. routers like ICEPick and DAP)' check box as shown below.

     

     Then terminate and relaunch the debug session as shown in the following two pictures.

     

     

    Step 2: Setup the CCS Memory window to access the TMS570 RAM via the DAP.
    To do this, select the DAP from the Debug window and then launch a new Memory window as shown in the following two pictures.

    A new memory window can be launched by selecting 'View -> Memory' from the CCS File menu.

    Then from the newly launched memory window,  'pin' the memory window to the DAP as shown in the picture below.

    Step 3: Enable the Continuous Refresh mode of the Memory Window.
    To do this, select the 'Enable Continue Refresh' option in the Memory window as shown in the picture below.

     Now all changes made to the contents of the Memory Window (RAM, registers, etc...) will be made using the TMS570's DAP-AHB interface instead of using the CPU.  This will be minimally invasive to the Cortex R4 CPU. 
    NOTE:  If the resource (RAM, registers, etc...) being accessed via the DAP-AHB interface is not used by any other master (ARM CPU, DMA, etc..) there is no intrusion.  In other cases, minimally invasive arbitration will take place between the bus masters trying to access the resource.

    A similar procedure can be used to setup a CCS Watch Window to access the device's memory via the DAP. 

    TMS570 DAP JTAG CCS Watch Window Memory Refresh Invasive AHB debug access port
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prathap
    Posted by Prathap
    on Mar 29 2010 16:54 PM
    Expert6175 points

    Adding to Anthony Vaughan's answer, it is much faster to use Watch Window to monitor or access memory ( typically Variables, registers, etc) using the TMS570's DAP-AHB interface. The only disadvantage is CCS4.x will not understand the symbols while DAP-AHB interface is used. Following are the steps to watch or edit contents of variables.

    In the below explanation, Variable_1 and Variable_2 are at address 0x08000804 and 0x08000808 respectively.

    Step 1: Setup the CCS Watch window to access the TMS570 RAM via the DAP.
    To do this, select the DAP from the Debug window and then launch a new watch window as shown in the following two pictures.

    A new memory window can be launched by selecting 'View -> Watch' from the CCS File menu.

    Then from the newly launched watch window,  give the Variable address(  in the watch window as shown in the picture below.
    Note: CCS4 does not recognizes the symbols (variable names) if the access is through DAP.

    Step 2: Monitoring ans Editing the Variable.

    -- To view the variable give *ADDRESS( for eg: *0x8000804), the watch window displays the value of the variable and updates with very minimal invasive procedure.
    -- To edit the contents select the Value Column in Watch window and edit it.

     

    ~~~ If a post answers your question, please mark it with the"Verify Answer" button. ~~~

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Smith
    Posted by Chris Smith
    on Jun 24 2011 16:05 PM
    Intellectual300 points

    Anyone know how to do this in CCS 5.1?  Seems that everything works (more or less) except for the continuous refresh button.  You have to manually keep right clicking and hit refresh.  Sort of defeats the point . . .

    Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ki-Soo Lee
    Posted by Ki-Soo Lee
    on Aug 20 2011 10:36 AM
    Guru116550 points

    Hi Chris,

    The method should be the same in v5. If the continuous refresh button is not working, then that seems like a bug to me. I'll try to reproduce and file a bug.

    Thanks

    ki

    -----------------------------------

    Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

    Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

    Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

    Click here to track an issue. Enter your bug id in the "Find Record ID" box

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Haixiao Weng
    Posted by Haixiao Weng
    on Aug 31 2011 14:33 PM
    Genius9535 points

    Ki-Soo,

    This post shows how to display the memory in a memory window or in a watch window. Do you know how to force the "tools-> graph" to use the DAP to access a certain memroy location (e.g. 0x08001234)and continue refreshing?

    Thanks,

    Haixiao

    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