• 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 » Code Composer Studio » Code Composer Forum » How to compile and debug kernel code using ccs v5
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • How to compile and debug kernel code using ccs v5

    How to compile and debug kernel code using ccs v5

    • kiran babu
      Posted by kiran babu
      on Mar 10 2012 05:51 AM
      Intellectual260 points

      Hi,

             I am a new bee to CCS. I am using ccs v5 (my target board is panda omap 4460 evalboard) for compiling and debugging my Linux kernel code. I had followed the below steps for creating the CCS project and compiling the project

      (Referred  to the link : http://processors.wiki.ti.com/index.php/Linux_Debug_in_CCSv5 -> Stop mode Debug)

      [1] Created a new C/C++ project by selecting File --> New --> Project and select Makefile Project with Existing Code.

      [2] In the section Existing Code Location, clicked on Browse... and point to the root directory of the Linux kernel source tree. Left the toolchain as <none> and clicked Finish.

      [3] Project Explorer view, right clicked and selected Build Options..., then selected C/C++ Build in the left tree and the tab Behaviour. Unchecked all the build rules boxes and clicked OK.

      [4]  Created a new target configuration  file with below options:

                (i)  Under Basic Section

                      Connection = Blackhawk USB560 BP Emulator , 20 pin JTAG Cable

                       Board or Device = OMAP4460

       [5] Run -> Debug configuration

      The debug configuration failed with below error message

      Error Message:

      IcePick_D: Error initializing emulator: (Error -2083 @ 0x0) Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.520.0)
      IcePick_D: Error: (Error -2172 @ 0x0) Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.520.0)
      C646X_0: Failed to retrieve the Wait in Reset Mode: Failed to get PRSC status
      ARM9_ICONT1: Failed to retrieve the Wait in Reset Mode: Failed to get PRSC status
      ARM9_ICONT2: Failed to retrieve the Wait in Reset Mode: Failed to get PRSC status

      I had checked the connections, all are fine.

      Can any one guide me

      [1] How to compile and debug  the kernel code in simulator mode (with out any connecting to target)

      [2] How to connect to target board & debug the loaded kernel code.

      Thanks in advance

      Kiran.

           

                

      CCS V5 + Kernel compilation
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • desouza
      Posted by desouza
      on Mar 12 2012 13:33 PM
      Guru56005 points

      Kiran,

      kiran babu

      [1] How to compile and debug  the kernel code in simulator mode (with out any connecting to target)

      [2] How to connect to target board & debug the loaded kernel code.

      [1] The kernel is not supposed to be compiled from within CCS. One of the reasons is that it requires specific parameters to be passed during build (CROSS_COMPILE, ARCH, etc) and also because it needs to be configured via its specific command (make menuconfig, make config, etc.). Therefore I suggest following the instructions shown in your linux distribution documentation on how to rebuild the linux kernel.

      [2] Although I don't have an OMAP4460 board with me, your configuration description seems to be fine. The error messages you sent show several issues when trying to connect to cores other than the A9s - something it is only possible either using a GEL file or if an application releases them from reset. However, the first message indicates the emulator is not properly initialized in your system. Before any further attempts to debug your system, can you follow the details to debug the JTAG connection shown in the page below?

      http://processors.wiki.ti.com/index.php/Debugging_JTAG_Connectivity_Problems

      Hope this helps,

      Rafael


      If my reply answers your question please click on the green button "Verify Answer".
      Search the wiki or go to useful pages for SDOWP, CGT, BIOS, CCSv3, CCSv4, CCSv5
      EMU_Connect
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • kiran babu
      Posted by kiran babu
      on Mar 13 2012 05:22 AM
      Intellectual260 points

      Hi Rafael,

      Thank you for your reply. I understood that kernel can not be compiled but can be debugged using  CCS .

      Coming to emulator connection, i had run the Test connection button in Target configuration pane under Basic tab and got the following messages as output

      Test Connection Log Messages:

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

      [Start]

      Execute the command:

      %ccs_base%/common/uscif/dbgjtag.exe -f %boarddatafile% -rv -F inform,logfile=yes -S pathlength -S integrity

      [Result]


      -----[Print the reset-command software log-file]-----------------------------

      This utility has selected a 560-class product.
      This utility will load the program 'bh560ubp.out'.
      Failed to open i/o connection (\\.\bh560ubp0)

      An error occurred while soft opening the controller.

      -----[An error has occurred and this utility has aborted]--------------------

      This error is generated by TI's USCIF driver or utilities.

      The value is '-250' (0xffffff06).
      The title is 'SC_ERR_ECOM_EMUNAME'.

      The explanation is:
      An attempt to access the named emulator via USCIF ECOM has failed.

      [End]

      From the log it appears that emulator is not able to connect to the target because USCIF ECOM failed.

      Can any one tell me what USCIF ECOM is and how can this be fixed so that i can debug my board using Black Hawk Jtag.

      Thanks in advance,

      Kiran

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • desouza
      Posted by desouza
      on Mar 13 2012 14:49 PM
      Guru56005 points

      Kiran,

      Although I don't have a BH560bp, I simply created one configuration here and get the exact same error message as you. That tells me that either the emulator or its drivers are not functioning. Can you check the Windows Device Manager and see if the emulator's device driver is installed? The Blackhawk's topics shown in the page I sent before will help you troubleshoot this. They will help you troubleshoot any issues with the device drivers.

      Apart from the possibilities above, there is not much more to suggest at this time. The device drivers must be working before CCS can connect to the emulator itself. 

      Regards,

      Rafael


      If my reply answers your question please click on the green button "Verify Answer".
      Search the wiki or go to useful pages for SDOWP, CGT, BIOS, CCSv3, CCSv4, CCSv5
      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