• 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 » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » Multicore debugging linker configuration
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

Forums

Multicore debugging linker configuration

This question is answered
Paul Singh
Posted by Paul Singh
on May 09 2012 08:59 AM
Expert2110 points

Hello,

For chips on which there are more than one processor cores, for example, an ARM and a DSP, should we manually configure the link.cmd so that the loading and running address of programs on different cores don't overlap? Should we create two different CCS projects, each for one of the cores? And besides manually setting each's cmd file so that the mapping don't overlap, is there a way to coordinate this work in CCS?

And when programs are launched, frequently there is a need to let one core halts/resumes code execution on another. I guess this should be done by:

1. to halt another core: change that core's program counter to point to "IDLE", save the current next program counter, or an infinite loop like while(1).

2. to resume another core, simply restore the saved program counter.

Is this the general paradigm? But does there exist a location in the firmware for the "IDLE" instruction, and that I should point the next program counter to that, or it is better to just point to something like a while(1) infinite loop which I wrote myself?

Paul

multicore linker.cmd
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • RandyP
    Posted by RandyP
    on May 09 2012 16:52 PM
    Verified Answer
    Verified by Paul Singh
    Guru61535 points

    Paul,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    Your question has nothing to do with our compiler, other than you want to compile some programs that will run on different cores and want to figure out what to do with them. So it should be posted somewhere else.

    But I am not sure where that "somewhere else" is. You are asking intellectually interesting questions, but that is really not why we have this forum. If you are trying to learn how to do multi-processor programming, you will get better results from one of many online universities or taking real university courses. I doubt we can compete well with the expertise at the many colleges around the world where this science is being developed.

    At TI, we try to learn from those same sources and then apply what we learn. But we are not in a position to provide that level of training.

    If your questions reduce down to how to use the Code Composer Studio platform for debug, then the Code Composer Forum might be your best place to find specific answers. But your questions are more theoretical than how-to-use the tools.

    Please search the TI Wiki Pages for multi-core and multi-processor debug pages. I wrote one based on the C6472 and CCSv4 named Using DSP/BIOS on Multi-Core DSP Devices which mentions some multi-core debugging techniques. You will find others using better search terms, and also will find good information on the broader web search. If you come up with some insights, please let us know your opinions. 

    If you have specific questions about our devices or tools, please ask them in the forum that best matches the topic. Or let us know where you would like this thread moved for you.

    Regards,
    RandyP

    Search for answers, Ask a question, click  Verify  when complete, Help others, Learn more.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Paul Singh
    Posted by Paul Singh
    on May 10 2012 12:04 PM
    Expert2110 points

    Randy,

    I read the links and has got some basic ideas. I am going to look at some further examples.

    Paul

    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