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.

Bricked Stellaris at first use. Any suggestions?

Other Parts Discussed in Thread: LMFLASHPROGRAMMER, SEGGER, EK-TM4C123GXL

Hi - 
I succeeded in bricking my Stellaris at my first attempt.  I am using the IAR Embedded Workbench, connected to the evaluation board via USB from a Dell Vostro laptop.  Lost communication with the eval board while stepping through the following program, while the counter was ~12, much less than the upper limit of 20:

int counter = 0;

int main() {
    int *p_int;
    p_int = &counter;
    while (*p_int < 21) {    << lost communciations here, while counter was ~12
        ++(*p_int);
    }

    p_int = (int *)0x20000004; // word-aligned
    *p_int = 0xDEADBEEF;

    return 0;
}

Resetting the eval board, rebooting the laptop & restarting the debugging environment has no effect.

Any suggestions?

- Steve

  • Hi Steven,

         What Stellaris microcontroller are you using?

         Use the LM Flash Programmer Debug Port Unlock Utility.

    - kel

  • Hi, Kel - 

    I'm using the Tiva C Series TM4C123G Launchpad Evaluation Kit, EK-T 4C123GXL.

    I don't see a place to download the LM Flash Programmer Debug Port Unlock Utility - is this part of a larger development environment?  I would consider installing and configuring Eclipse as a last resort, if necessary (As I mentioned above, I'm using the IAR Embedded Workbench).

    Thanks!

    - Steve

  • Hi Steven,

    i just searched LM Flash Programmer in google and it was the first link. 

    http://www.ti.com/tool/lmflashprogrammer

  • LMFlash is a stand-alone application - just use defaults...

    Petrei

  • Should you be using IAR AND a J-Link pod - Segger includes "J-Link Commander" which also unlocks a locked MCU. Alas - if you've no J-Link - you must use the LM Flash Programmer application program.  You may be confused by others' mention of "Debug Port Unlock Utility" - that's simply one option w/in a tab included w/in the LM Flash Programmer.  (devil in such detail - hard to convey when writing is fast/short...)

    It remains unclear "how" you got into this state.  Facts in evidence are unlikely cause - suspect something else/further happened - and should be avoided...

  • Steven Johnson1 said:
    I don't see a place to download the LM Flash Programmer Debug Port Unlock Utility - is this part of a larger development environment?

    The "Debug Port Unlock Utility" is part of the LM Flash Programmer, and you can find it at the "Other Utilities" tab.

    - kel

  • OK - found the LM Flash Programmer and its' Debug Port Unlock Utility.  Ran the utility, configured it to use the TM4C123G eval board, then followed the instructions regarding reset button & power cycling.  So far so good.

    Re-started IAR Embedded Workbench, which seemed to find the board.  Ran the compiler (rebuilding the code above), ran the debugger in simulator mode to watch the behavior of the code, then configured the debugger to use the board, then downloaded the code & verified.  So far so good.

    Started execution ("Step Into"), and circling doughnut of death reappeared.  Had to kill & restart IAR Embedded Workbench.

    At this point, I'd like to try downloading the RGB quickstart application into the board using the LM Flash Programmer app to see if perhaps the problem is with the IAR Embedded Workbench IDE.  Can anyone point me to that file (yes, I have looked for it using Google Advance Search on the ti.com website, and with a file extension of .bin), 

  • Hi Steven,

         The qs-rgb binary file is at Tivaware for your Tiva Launchpad located at "\\examples\boards\ek-tm4c123gxl\qs-rgb\rvmdk".

    - kel