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-TM4C123GXL: Unable to program the board

Part Number: EK-TM4C123GXL


Hi! Not sure if my board is broken but it was working fine previously. I tried to upload a program using Keil uvision4 but it says 'could not initialize device'. I tried to erase the entire flash on LM Flash as instructed in a previous thread but it can't detect any device. Also went on to unlock the ports but it 'failed to unlock it'. Please help :( the LED is on when it is plugged into the USB and Stellaris is registered under COMPORT in device manager. 

  • HI Ting,
    Do you remember what was the last program that you had successfully loaded to the flash?

    When you plug into the USB, not only will you see the COM port but also separately recognized as a ICDI debug port. Do you see the ICDI debug? Can you also try with another PC machine or power cycle your current PC? The PC needs to recognize the the board as a ICDI debug port before you can perform the unlock.

    Suppose you see the ICDI debug in the Windows Device Manager and if you want to unlock the device then below are the steps.

    1. Unpower the board and press reset

    2. Power the board but do not release the reset

    3. Run the unlock sequence according to the LM programmer "dialog box"

    4. Power Cycle the board

    5. Do a Flash Erase Check or load a simple program to confirm the debugger can access the MCU again
  • Hi Charles,

    Thanks for the reply. I was able to unlock the port after following your steps. However, I encountered the same issue as before when I try to load a program. This was the error message: 

    The green LED turned on when I unlock the ports. I was working with the ADC previously to program a temperature sensor and I left it there for a week. 

  • Did you power cycle the board again?
  • Are you able to download any programs at all? Can you try other simple TivaWare examples? Did you use Keil to download program? Can you try LM Flash Programmer to download? Does it work?
  • Just tried the blinky file from the TivaWare example and I got this: 

  • Maybe I got the steps wrong but I tried to program the flash using this: 

    tried all the blinky.bin files I could find but all show the same error message. Didn't succeed with Keil too. I am using a Windows 10. Not sure if this is a problem. 

  • Can you try your board on another Windows machine perhaps from someone in your class who had it working? If you have another board (again from someone in your class who had it working) can you try it on your current machine?
  • Good suggestion, Charles - single board anomaly IS deadly - being able to distinguish between a "general issue" vs. one "single board limited" so often proves of great & insightful value...

    Speaking to "insightful" - somehow poster's (Subject/Headline) "Unable" breaks NEW GROUND in, "Failing to provide ANY meaningful description of the issue he/she is facing!" If that MAJOR forum point (the attention drawing HEADLINE) is to be so "little valued" - what are the odds that OTHER meaningful detail - will be addressed?

    The Subject/Headline may be quickly/easily edited (unless that too - has received the dreaded "forum upgrade" (described as such by ONLY ... the "upgrader.")

    Should the Forum Subject/Headline be SO MISUSED - why not, "Cast it OFF too - like *** LIKE ***" (and provide an equally unbelievable "justification.")
  • Hey cb1_mobile,

    So sorry I didn't mean to do that. I didn't finish the title as I couldn't think of one when I first crafted it and I accidentally clicked submit forgetting to finish the sentence. :( I submitted another post with a proper title but it was the same content so thats why it didnt get posted. :( also my school isnt using this board asI am working on an individual project and my professor wants me to use this so I dont have a choice :(
  • Hope I didn't upset anybody. I am having a hard time too :(
  • Hope I didn't upset anyone and I appreciate how you all responded so quickly. I am having a hard time so please understand :(
  • My friend - No one here WANTS your sorrow - we do seek to "Alert you" - so that you become more "aware" thus prevent your (future) posts from being "over-looked!" (kindly understand - if the poster is SO unconcerned w/his effort - WHY should others invest time/effort? That's reasonable - is it not?)

    Now - cannot you return to your initial post - and simply "edit away "UNABLE?" You REALLY do benefit from a proper Headline - as one who has worked in Tech Advertising - Headlines ARE important - and "Unable" by itself - does your post a grave disservice!
  • I KNOW! THATS WHY I SENT ANOTHER POST WHEN I CANT EDIT IT. This is the first time I am using this and I dont know how the title can be changed.

  • I edited the title of the thread.

    Are you able to try your board on another machine? Please talk to your professor to see if he has another spare board that you can borrow to try on your machine.
  • Nope :( Guess I would have to order another one. Thanks Charles. I will let you know when this is resolved.
  • You should see the Stellaris In-Circuit Debug Interface like below. If not, you may need to reinstall the driver. 

  • Hi Charles, thanks for the reply. Yes I got that. Even tried updating the driver, redownloading it and update it but it didn't work. I just ordered another board. Will check if that works.