This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Time-Out in CCS-5.4 for TM4C123GXL

Other Parts Discussed in Thread: EK-TM4C123GXL, EK-LM3S3748, LMFLASHPROGRAMMER, LM3S3748, LM3S2965

Hi,

I'm using CCS-5.4 foe EK-TM4C123GXL LauchPad.

I have an unstable condition in debugging the launchpad using CCS-5.4, more than 50% I have the error below and CCS gets hung

I tried with

1) Example "project0" and "hello" example from TivaWare for the board EK-TM4C123GXL

2) I tried with both CCS-5.4 and 5.5

3) Just click "DEBUG" and the error poped after a while, haven't got a chance to run it, then it got hung, the CCS appears DIM, unable to close

Below is the error msg

CORTEX_M4_0: GEL Output:
Memory Map Initialization Complete
CORTEX_M4_0: Error: Timed out while waiting for target powerup/polling a hardware resource.

 

Any idea would be appreciated

Thanks,

 

~Duy-Ky

  • Hello Duy-Ky,

    Have you made any board modifications? Also is it using the Stellaris ICDI or another external debugger?

    Did you try changing the USB port or moving it from the HUB to a USB on the PC.

    More details will help

    Regards

    Amit

  • Hi Amit,

    The board is in the original condition, just started using few hours, It's TI EK-TM4C123GXL.

    I got 3 of them, all behave the same, even newly opened ones.

    You may want to look at  its PDF from TI "spmu296.pdf", the brd has 2 USB : (1) Device Port (2) Debug Port.

    I'm using DEBUG port.

    I'm using the same USB port, behaves the same using different USB port.

    I cannot be USB connection as it's able to make connection and load program with GREEN ARROW pointing at MAIN

    Now it's getting a lot worse, it's time-out every time I starts debugging!

    I never had this kind of problem using on-brd debugger with EK-LM3S3748 & 2965.

    As you knew, I had problem PU R's for I2C for 2965, but no time-out ptroblem.

    3S2965 is obsolete, so I ordered this brd to see if it's better, but turns out a lot worse.

    In the demo video for this brd, TI guy also mentioned some error like this and he said "just ignore". Could you look at the demo for this brd to see for yourself, it could help

    What's wrong with design of the brd or the chip ?

    Thanks,

    ~Duy-Ky

    What's wrong with this

  • Hello Duy,

    Can you take a picture of the board and send it across, to make sure settings are all OK?

    Secondly, try a Unlock Sequence using the LMFlashProgrammer and then see if this issue comes again with the first download or the second download of the code.

    Regards

    Amit

  • Hi Amit,

    Unlock does NOT help, still time out at every time start debugging.

    I already uploaded photo of the brd

    Thanks, Amit

    ~Duy-Ky

  • Hello Duy-Ky,

    OK, the board looks fine (visually). Now you are able to load a program and it stops at Main. However when you run the command it starts giving the message? I am asking this because earlier you mentioned that USB is not the issue and it goes till main.

    Regards

    Amit

  • Hi Amit,

    Below is the exact sequence

    1) Recycle the board, LED blibking in blue

    2) Start up CCS and click debug to load the simplest example "PROJECT0"

    3) USB appears working to download the program to the brd, the GREEN ARROW points to start of MAIN as usual

    4) Less than 1 minute later,

         4.1) the error popped up

         4.2) The GREEN ARROW goes away, so I'm not able to start debugging session, it gets hung

    Thanks, Amit

    ~Duy-Ky

    >> Start of Screen capture

    CORTEX_M4_0: GEL Output:
    Memory Map Initialization Complete
    CORTEX_M4_0: Error: Timed out while waiting for target powerup/polling a hardware resource.
    CORTEX_M4_0: Unable to determine target status after 20 attempts
    CORTEX_M4_0: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    >> End fo Capture

  • Hello Duy-Ky,

    Thanks for the clarification. I had something else thought about the issue. So it does download and you are able to debug. But if you leave it idle, the error message comes.

    If yes, then please check the USB Port Setting. Some of them actually power down the device if Idle.

    Regards

    Amit

  • Hi Amit,

    The power is STILL ON when it's time-out, not down when idle.

    I click start debug right away, it won't work either.

    The USB hub works fine for others, including on-brd debugger on LM3S2965 & LM3S3748

    So, it must come from the TM4C123GXL brd itself

    There're 2 TM4C123 MCUs on board, one used as debugger, one for user

    So, there must be some kind of bug in the FW of the MCU used for debugger

    Could you check with TM4C123GXL develop team to see if they have a fix ?

    Thanks,

  • Hello Duy-Ky,

    I don't think there would be a change on the LaunchPad for upgrading the firmware in existing systems and boars. But xdsicdiv2 which comes with CCSv6 would be the next starting point for new LaunchPads.

    Regards

    Amit

  • @Duy-Ky,

    Do you have/added to the project the target.ccxml file for configuring your debug interface? You must configure the interface type (ICDI) and the flash speed to 8MHz.

    Petrei

  • Hello Petrei

    Did you mean 1MHz for the Interface Speed?

    Regards
    Amit
  • Hi Petrei,
    Yes, I have both CCXML and GEL correct. Now I learned that it didn't respond soon as it was doing something in the background as the CCS-5.4 was newly installed for TM4C123, as my existing CCS-5.4 was for OMAP and AM18 ahd it has no GEL file for Tiva-C.
    Thanks so much, Petrei
    ~Duy-Ky
  • Hello Duy-Ky

    And does the problem still persist?

    Regards
    Amit