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.

TM4C123GXL ICDI Window driver problem

I have problem in lab2 of TI workshop when building and loading project to flash memory even after reloading the icdi drivers (according to step 37 on pg. 1-23).  I am getting this error message:

CS_DAP_0: Error connecting to the target: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may one or more of: invalid emulator serial number, blank emulator EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the emulator can be located. (Emulation package 0.0.0.0) 

Please help.

  • Hi Karl,

    I'm sorry, I'm not familiar with lab 2. However, if you are using a LaunchPad, it does not have an FTDI device.  The on-board debug is supported by a Tiva device and requires the Stellaris ICDI drivers.  Please carefully follow the instructions in this document.  If this process fails to solve your problem, please provide information on what Windows Device Manager indicates about connected devices.

    Regards,

    Sue

  • Sue,

    Thanks for getting back so quickly. I did follow the  document that you referenced. The Window driver shows that the ICDI drivers are properly installed (same as Figure 22 of  document 

    Thanks for your help

     

    Karl

     

  • Hi Karl,

    So is everything working as expected now?

    Regards,

    Sue

  • Sue,

    No, I still have the same problem (i. e. can not Debug) even after I reloaded the ICDi driver and the LM Flash programmer and tried another USB cable. 

    Regards,

    Karl

  • Thanks for the clarification, Karl.  So at least we know that the PC is recognizing the board.  Have you ever had successful JTAG communication with the board? Can you use LMFlash Programmer to download one of our provided files (such as blinky.bin)?

    Regards,

    Sue

  • Sue,

    I disconnected the LaunchPad from PC and restarted the project (lab2). When I tried Debug, I get the same error message as when I had the LaunchPad connected to PC. Therefore, I do not think I was able to successfully program into the flash using LMFlash Programmer. I can not run the project(lab2) which is the LED blink program.  The LaunchPad behaves as if it is not connected to the PC.

    Do I have a bad board?  

    Regards,

    Karl

  • Hi Karl,

    I'm a little confused by your description.  You say:

    Karl Wang said:

    I disconnected the LaunchPad from PC and restarted the project (lab2). When I tried Debug, I get the same error message as when I had the LaunchPad connected to PC. 

    How can you debug if the board is not connected to the PC?

    Have you ever successfully downloaded code to this board?

    Regards,

    Sue

  • I can see the code in Code/Editor Pane. But that is what is in the project file on my PC.  I can not Debug using CCC Debug GUI with the LaunchPad connect or disconnected from PC. This result shows that the board behaves as if it disconnected from the PC even when it is physically connect to PC via the USB cable.

    Hope that clears it up.

    Thanks

    Karl

  • Hi Karl,

    It's still not really clear.  You cannot possibly be debugging if you are not connected via USB cable from the PC to the board.  The code can be visible in the window even if you are not debugging.

    I've asked you twice so far if you have ever successfully loaded code onto the board and you haven't answered me.  Can you please answer this question?

    Thanks,

    Sue

  • Sue,

    I can not be sure if the code is being downloaded into the board. The evidence that it is NOT being downlooaded correctly are the following: 1) debug does not work 2) program can not run 3) the same results if board is physically disconnected from PC, 4) the error message suggests that the board may not connected.

    Additional information that may be helpful: 1) The serial port does work properly running Putty. 2) The LED lights and the 2 push button work properly after power up (without any program being loaded).  

    Can you check out your drivers on your end to be sure that the drivers are not the problem? Why does the message refers to FTDI driver functions when FTDI is not used?

     I am going to teach a course on Advanced Embedded System design using TI's LaunchPad in January. I am going through the TI tutorials to prepare for this course.  Thanks for your help to debug this problem. 

    Thanks for your help on this debugging work.

    Regards,

    Karl

  • Thanks for the reply, Karl.  I'm going to assume that you have never properly connected to the board.  Please try using the Debug Port Unlock utility in LM Flash Programmer.  Use the Blizzard setting and follow the on-screen prompts.  You may need to try it a few times.  Please let me know if using this utility allows you to connect with the board.

    Regards,

    Sue

  • Sue,

    Please give me instruction for running Blizzard.

    Thanks

    Karl

  • Karl,

    Run LMFlash Programmer and select the TM4C123G Launchpad in the Configuration Tab.  

    Go to the Other Utilities tab and select the Fury, DustDevil and Blizzard classes button.  Then click on Unlock.

    Follow the on screen instructions carefully.  You may need to run the Unlock utility multiple times to regain communication.  Once it unlocks successfully, go the the Program tab and select a TI-provided .bin file, such as blinky.bin to download and see if that works to know if your JTAG connection is working properly.

    Regards,

    Sue

  • The problem is related to the project setup. When I followed the direction (e.g. given in lab2 and lab2) and made sure the TIVAWARE_INSTALL points to the latest version, then the problem went away.  Thanks for your help.