• 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 » StarterWare » StarterWare forum » Problem of Debugging bootable device
Share
StarterWare
  • Forum
Options
  • Subscribe via RSS

Problem of Debugging bootable device

Problem of Debugging bootable device

This question is answered
Duy-Ky Nguyen88210
Posted by Duy-Ky Nguyen88210
on Nov 09 2011 16:02 PM
Expert1350 points

Hello,

I have a bootable SPI flash. It appears up and run after power on.

I'm NOT able to load program in debugging mode. I have to turn off SPI_Boot mode, say put in UART_Boot, in order to do debugging.

It appears to me the XDS not able to stop a running CPU and take over the control as it's supposed to do

I'm using XDS100v2 from Digital Spectrum and OMAP-L138 Experimenter board ?

Q1 : How to have XDS control a running CPU without changing boot mode ?

 

Thanks,

~Duy-Ky

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Duy-Ky Nguyen88210
    Posted by Duy-Ky Nguyen88210
    on Nov 09 2011 20:08 PM
    Verified Answer
    Verified by Duy-Ky Nguyen88210
    Expert1350 points

    It's extremely frustrating to work with very unstable development tool like what I'm experiencing with CCS-v5 !!!!

     

    Now, no matter what I'm doing, it hangs forever in start of debugging. Below is screen capture of InitScript using GEL file, I guess

    ARM9_0: Output:     Memory Map Cleared.
    ARM9_0: Output:     ---------------------------------------------
    ARM9_0: Output:     Memory Map Setup Complete.
    ARM9_0: Output:     ---------------------------------------------
    ARM9_0: Output:     Enabling Full EVM PSCs...
    ARM9_0: Output:     PSC Enable Complete.
    ARM9_0: Output:     ---------------------------------------------
    ARM9_0: Output:     PLL0 init done for Core:300MHz, EMIF:25MHz
    ARM9_0: Output:     mDDR initialization is in progress....
    ARM9_0: Output:     PLL1 init done for DDR:132MHz
    ARM9_0: Output:     mDDR init for 132 MHz is done
    ARM9_0: Output:     ---------------------------------------------

    HANG here forever

     

    Even with boot image, ocassionally I had successful loading and debugging. When it failed, I had to switch to UART_Boot, and it worked for few times.

    Now, it stops working totally, no matter what I did, like cycle the power, plug/unplug XDS, clode/open CCS-v5, I did dozen times. It really frustrating

    I do not believe anything to do with XDS and boot image on the board, as I have no problem at all in debugging for both CCS-v4 and CCS-v5

    Now, all suddently it stops working even after I recover the original image come with the board. I'm able to see all output on Terminal as I saw before.

    It still stops working.

    Q1 : WHY it stops working in exactly the same original condition, I believe ???

    Q2 : Does CCS-v5  store some secret info somewhere to prevent it from working ???

     

    Thanks,

    ~Duy-Ky

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Duy-Ky Nguyen88210
    Posted by Duy-Ky Nguyen88210
    on Nov 10 2011 11:23 AM
    Expert1350 points

    Hello,

    Now I'm able to debug a SPI-bootable device in UART-boot mode after creating a new work-space.

    So CCSv5 corrupted the workspace is the root cause of my previous weird failure.

    So far, I have used a dozen of debugger, from low-end like McCraiggor to high-end one like LauterBach, including several embedded Linux like BDI3000, ... all are able to take control of running CPU once they start debugging.

    Now CCSv5 appears to me not able to control a running CPU in debugging job.

    After start debugging, I got console output

    ARM9_0: Output:     Memory Map Cleared.
    ARM9_0: Output:     ---------------------------------------------
    ARM9_0: Output:     Memory Map Setup Complete.
    ARM9_0: Output:     ---------------------------------------------
    ARM9_0: Output:     Enabling Full EVM PSCs...
    ARM9_0: Output:     PSC Enable Complete.
    ARM9_0: Output:     ---------------------------------------------
    ARM9_0: Output:     PLL0 init done for Core:300MHz, EMIF:25MHz
    ARM9_0: Output:     mDDR initialization is in progress....
    ARM9_0: Output:     PLL1 init done for DDR:132MHz

    It hangs there forever with a popup window "GEL Expression: On TargetConnect()"

    So it seems to me it keeps trying to connect the target, but not able to get connected.

    I have to cancel it after a very long waiting.

    I then have another popup window "Load program Error" with message " a data verification error occured, file load failed"

    Once I click "OK", it closes the debug window and back to compile window.

    I add the TI AM1808.DEL as InitScript in Configuration

    So

    Q1 : Do I have to set any option in CCS-v5 to solve this problem ?

    Q2 : Do I have to change GEL to solve this problem ?

     

    Thanks,

    ~Duy-Ky

    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