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.

TM4C123GH6PM: The Tiva C Launch Pad stopped working

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: UNIFLASH

The Stellaris ICDI seems working. I can see the Stellaris In-Circuit Debug Interface in Device Manager. MVision, LM Flash Programmer and UniFlash, all recognize the Stellaris ICDI. I even can use Unlock feature in LM Flash. But when I try to Erase Flash I receive This Error:

**ERROR**: Unable to initialize target - 0!

and in mVision when I try to download the code to flash memory, I receive this error:

Stellaris ICDI Error

Could not find and Cortex-M device in JTAG chain!

What could be wrong?

Thank u.

  • Hi,
    Can you use the CCS IDE or LM flash programmer or Uniflash to erase and program the flash? If you are successful with these three tools but not the mVision for which we are not familiar, I will suggest you contact mVision for support. BTW, do you mean Keil uVision or mVision? I'm not familiar with mVision.
  • I can't erase flash in Keil uVison nor in LM Flash
  • You said in your original post " I even can use Unlock feature in LM Flash". So which tool can't you erase? Have you tried Uniflash or CCS to erase?
  • Unlock feature is not the same as Erasing Flash, dude. I tried Uniflash and it wasn't successful. I receive the following error:
    Error connecting to the target
    the problem is that I can't download codes to my Launchpad.
  • Unlock is a mass erase that will restore the part to the factory setting. If you can unlock then there is no reason you can't erase.

    When did the problem occur? Have you used the board for a while or out of the box? Did you know what program was previously written to the flash right before you were not able to connect? Do you have another board that you can connect that confirms it is not the problem with the PC side such as the device drivers. Can you reproduce the problem with another PC?
  • I can Unlock (or at least i don't receive error while Unlock process in LM Flash) but when I try to erase flash in LM Flash program, I receive an error.
    The problem occurred after I downloaded a code to my Launch Pad. The code activate the PORTF so it doesn't manipulate the JTAG pins. I have just one PC and one Launchpad, for now. I ordered another one which will be delivered in a couple of days. I don't think that the problem is the PC because I uninstalled and reinstalled the drivers and all things seems to work find except the download code process or Erase flash. I suspect that the connection between the Stellaris ICDI and the main MCU is lost.
  • Again, if you can unlock via the LM flash program it means the debug probe is connecting to the target device. The unlock operations involves the mass erase of the device's entire flash memory, EEprom memory and any non-volatile registers. If this works, the JTAG connection between the ICDI debug probe and the MCU is working. Unless the board is somehow damaged, otherwise, I can't think of a reason that it will unlock but not erase or program. I guess we will need to wait for your second board to prove that your existing board is bad or not or there are some other problems. Report back the result when you receive the second board. In the meantime, i still suggest you to try with another PC and also CCS. Try to flash a simple TivaWare example and see if that makes a difference.
  • If you can truly unlock then the user registers would have been erased (all F's) too. Can you confirm that is the case on your board?

  •  After the Unlock process, when I push the Get Current Value Button, I Receive the following error:

  • I'm wondering when you unlock did you see the below screen shots. If you have gone through exactly as shown and you still can't program or erase the part afterward I think the board may have a problem. You will need to wait for new board and let us know what is the result. 

    I first pre-program the user registers with arbitrary values.I then click the Unlock button and you should see the below screen. 

    You should see the below screenshots if you follow the instructions. Make sure you hold the reset and don't release it while you power cycle and then hit the OK button in below screen. 

    Now you can release the reset.

    Power cycle the board again.

    If the unlock is successful and if you read the user's registers again they should be all F's. 

  • Hi Charles,

    I received my brand new Launch Pad and it's working without any problem. I can Erase Flash & Unlock it.

    But the problem with old one still persists. So we can assume that the problem is nothing to do with my PC.

    What can I do?

    Thank you

  • Hi,
    Great that the new board is good as expected. So the problem is not the PC driver. It is possible that the old board is bad for some reason. I don't know if it is worth for you to diagnose the board. If you wish, you can follow section 6 in the TM4C12x JTAG app note. e2echina.ti.com/.../Using-TM4C12x-Devices-Over-JTAG-Interface.pdf to diagnose the JTAG interface. Also visually check if there is good and solid connection between the ICDI/TM4C123 chip and the board. If you still can't get to board to work, I will suggest you move on to the new board.
  • Thank you for your help.
    I certainly will move on to the new board. I was trying to revive my dead board because the TI products is very rare in my country. I was lucky to find someone that had a couple of Tiva C launch Pads. So I prefer to go on my online course and leave the diagnostic of the dead board for another time in future.
    I thank yo again for trying to help me.

    best regards,
    Ehsan