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.

EK-TM4C129EXL: Tiva MCU not flashable, possibly corrupted

Part Number: EK-TM4C129EXL
Other Parts Discussed in Thread: UNIFLASH,

Tool/software:

I have been using uniflash to program the EK-TM4C129EXL dev board with some example programs, which has worked fine for a few days. However, Uniflash has suddenly stopped working today, and is only giving me an error: "CORTEX_M4_0: Error connecting to the target". Similarly, I cannot use the Debug feature in CCS to run my code in debug mode.

I have tried using uniflash to program a second identical dev board, which works fine. I suspect I may have corrupted something on the board, since the last thing I was testing is trying to set ALTCLK to RTCOSC. Is it possible to make the EK-TM4C129EXL dev board un-flashable by misconfiguring the MCU? Any suggestions to recover from this situation?

Here's the code I flashed right before the MCU stopped responding. It's based off the timers.c example in the Tivaware SDK but I have modified it since I was trying to use General Purpose Timers to drive a PWM output pin, and I was trying to use RTCOSC as the timer's clock.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//*****************************************************************************
//
// timers.c - Timers example.
//
// Copyright (c) 2013-2020 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 2.2.0.295 of the EK-TM4C1294XL Firmware Package.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Eric,

    I suspect I may have corrupted something on the board, since the last thing I was testing is trying to set ALTCLK to RTCOSC. Is it possible to make the EK-TM4C129EXL dev board un-flashable by misconfiguring the MCU? Any suggestions to recover from this situation?

    I just tried your code and indeed it hangs on me that I cannot connect to it with the debugger. However, I can recover the board by using unlock operation. See below LM flash programmer Unlock button. Follow the instructions when you click the Unlock button to recover the board to its factory setting. 

    I suspect some issue related to the below errata. 

      

  • Thanks, I will look into the errata you mentioned.

    Using the "Unlock" operation on LM Flash Programmer resolved my issue.

    Note: I was unable to resolve the issue using the "unlock" operation on Uniflash version  8.7.0.4818. (I got an error "Module closed").