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.

CCS/TM4C123GH6PM: CCS/TM4C123GH6PM:

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

I have the kit "Tiva C Series TM4C1294 Connected LaunchPad" containing TM4C1294NCPDT MCU.
I plugged in the kit using the micro usb provided to me in the box with the kit.
I installed all drivers
"Stellaris ICDI DFU Device"
"Stellaris ICDI JTAG/SWD Interface"
"Stellaris Virtual Serial Port"

I tried downloading the uart_echo.bin example provided to the board using LM Flash programmer build 1606.


I am always getting "**ERROR**: Unable to initialize target -0!"

In the Configuration TAB I have Quick set "TM4C1294XL LaunchPad".

i also to Unlock the debug port and i get 

and the problem still exist

What seems to be the problem here?

  • Hi,

     Can you show your configuration tab?

     Did you select TM4C123G LaunchPad? Please see below. Please also note that the latest version is 1613. You can update the the ICDI firmware in the "Other Utilities". 

  • -> yes the version is 1613
    -> i was using stellaris development board
    -> i tried TM4C123G launchPad configuration -> when i try to update the ICDI firmware i get "error:failed to program ICDI device"
    -> when i try to unlock it ,it unlocks successfully
    and the problem still exist
  • Hi,
    Can you confirm one more time you are using Stellaris development board or the Tiva TM4C123G development board? Where did you get the Stellaris development board? The Stellaris MCU is NRND (not recommended for New design). We do not support Stellaris any longer. Perhaps you can take a picture of the board as well as the MCU on the board first so I can take a look.
  • Hi Charles,

    i am sorry for wasting your time with me ,i am using Tiva C Tm4c123GH6PM LaunchPad , i choose Stellaris development board before because i was using CCS with This configuration

    so i Thought Stellaris development board was the right choice,

    here are the pictures of the Board

    and here is picture of the MCU on it

    any way i tried Stellaris development board, TM4C123G development board, TM4C123G LaunchPad and non of them works 

    i get "Unlock Complete " and when i try to flash a code i get the same thing

    One more thing that might help, when i try to flash a code using UARTConnection like this

    i get this output

  • Hi Ali,

      Your first image is correct where you choose Stellaris ICDI In-Circuit Debug interface when setting up the target configuration in the CCS. It looks like in the CCS you are connecting to the device successfully, The problem you have is during the flashing the memory. Is this a correct understanding? Do a right click on the target configuration file you just created and select "Launch the target configuration". After you launch the target configuration, you can go to the Run->Connect target. I just wanted to make you are connecting to the target without a problem. If you can successfully connect to the target then you can do Run->Load program and select any one of the TivaWare examples. Instead of selecting the .bin file, can you try selecting the .out file? Do you see any difference?

      

      

  • Hi Ali,
    I have not heard back from you. Is the issue resolved?
  • hi Charles,

    sorry i have been busy lately,

    "It looks like in the CCS you are connecting to the device successfully, The problem you have is during the flashing the memory. Is this a correct understanding? "->  i really don't know what is the problem, if you mean that when i connect the tiva c it appears in the device manager but i can't flash any code then yes ,that is true the kit connects properly and here is a picture of the device manager when i connect it

    "Do a right click on the target configuration file you just created and select "Launch the target configuration"-> i can't find Launch target configuration , i connected a working kit to check for it but still can't find it here is a picture of what i get 

    i appreciate your time and consideration ,thank you

  • Please follow the below steps.

    1. Open the Target Configurations. If you don't see this you can go to View->Target Configurations to open it

    2. I'm using the hello example. You can use any existing TivaWare example and you should find a file called target_config.ccxml

      3. Right click on the target_config.ccxml

      4. Select "Launch Selected Configuration"

      5. Go to Run->Connect Target

      6. Go to Tools->On Chip Flash

      7. You should see below image 

      

     8. Click on the "Erase Flash" button.

    Do you see the flash erased?

     9. Program any of of the TivaWare example. What do you see?

  • hi Charles,

    i did the steps but unfortunately the kit doesn't connect i get this when i do step number 5 "connect target"

      but as i told you before the kit exists at device manager so i think this kit may survive , i have another one that doesn't show at device manager

    and any way if this kit doesn't work , could you please tell what to avoid , what are the causes to this problem so i don't kill another one i have killed 3 already

    thanks again for your time  

  • Hi,

      You screenshot shows that you are unable to connect. 

    Can you tell me if you had loaded any program into the flash before the problem started to occur?

    Did you ever load any TivaWare programs before that was working?

    Did you repurpose any JTAG pins as GPIO pins in your program.

    Did your program put the device in any sleep mode by killing the clocks?

    I have to ask these questions since you said you have killed three launchpad already. Normally, the target is unable to connect because the JTAG pins are repurposed as GPIO pins. These are the PC[3:0] pins. 

  • hi Charles,

    Charles Tsai said:

    Can you tell me if you had loaded any program into the flash before the problem started to occur?

    Did you ever load any TivaWare programs before that was working?

    yes i loaded many programs to the 3 , i can recall that one of them was killed when i was configuring uart7 (this is the one that doesn't show on the device manager) and the other was a normal pwm code (this is the one that shows on thew device manager)

    Charles Tsai said:
    Did you repurpose any JTAG pins as GPIO pins in your program.

    that might be i could have written a wrong address that is reserved for jtag or some thing

    Charles Tsai said:
    Did your program put the device in any sleep mode by killing the clocks?

    i don't think so , i didn't mess with any of the clock registers

  • Hi Ali,
    Yes, please do check if you have repurposed the JTAG pins for GPIO whether intentionally or by mistake. This is to prevent you from locking out your other working boards.
    For the three boards that you have problem connecting, please use the LM flash program to unlock the device. Please follow the instructions carefully on section 5.3 of this app note. www.ti.com/.../spma075.pdf. If the unlock doesn't work, you can refer to the section 6 in the same app note on troubleshooting the JTAG interface. At the end if nothing works to revive the units I think you will just need to move on to your other working boards.
  • Hi Ali,
    I have not heard back from you. As I mentioned earlier, if you try everything and still can't revive the board then I think the board is somehow bricked and I will suggest you just move on to your working board. I will close the thread for now. If you have some updates you can just reply back to this thread again.