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.

LMFlash Error 0x1 using TM4C1294 to program LM3S1918

Other Parts Discussed in Thread: LM3S1918, EK-TM4C1294XL, DK-TM4C129X

I am trying to program a LM3S1918 in an existing board using the Tiva TM4C1294 but I get an error after anywhere from 7% to 53% of programming, "Programming error 0x1." I have used the Stellaris evaluation kit boards with LMFlash in the past to program this same board and it works just fine. Based on other postings with related issues, I have tried slowing the JTAG speed, I have uninstalled/reinstalled LMFlash, and I have tried unlocking the port, all to no avail. My coworker is able to run it on his computer and it works just fine. The difference is that when he plugged in the Tiva board, he already had ICDI drivers installed and he had an older version of the LMFlash software. I tried uninstalling LMFlash and installing the older version, but that didn't work either. I don't know how to get the ICDI drivers he is using. The ones I am using are the ones in the package from the TI site under the DK-TM4C129X-786 folder. We both have identical Dell laptops running Windows 7. I have administrator privileges, but have also tried running as administrator anyway, but no luck. Any suggestions would be very helpful. Thanks!

  • Update...

    I decided to plug the Tiva board into my docking station USB hub rather than directly into my Dell Laptop USB port and it programs just fine. I'm still open to suggestions as to why this is, but at least it is working now.

  • Hi Richard, 

    If you face that issue, this post would be very helpful. 

    http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/310876.aspx

    Once you unlock the board, it could be fine. 

    Thank you. 

    Ronie

  • Hi Richard,

    Richard Eich said:
    existing board using the Tiva TM4C1294

    Is that the Tiva Connected Launchpad kit?

    Connect your Tiva Kit direct to your PC then post a picture of your Device Manager here, showing the drivers for Tiva kit.

    -kel

  • Hello and thank you for your reply. Yes, this is the Launchpad kit, part# EK-TM4C1294XL.

    This is apparently a different driver than I had earlier in the day yesterday. I had initially installed the ICDI drivers as a separate download from TI. That version was 2.0.12245.0. But when that didn't work, I downloaded the full zip folder from TI which included a different ICDI driver, so now it is 2.0.7922.0. Neither one work on two of my USB ports on my laptop. However, as I mentioned in my follow-up posting, I was able to get it to program when it was plugged into my docking station. I also found later that it works in a third USB port on my laptop, but still not on the other two.

    -re

  • Richard Eich said:
    I also found later that it works in a third USB port on my laptop, but still not on the other two.

    Then it has something to do with your other two USB ports. Maybe some sort of settings at your laptop or USB specifications. Anyway, your setup is good as it works with your laptop's third usb port.

    -kel

  • Thank you for your reply Ronie, but as I mentioned in my post, I have already tried unlocking but it did not work. I tried it again just to be sure, and that still does not work. However, as I mentioned in my follow-up post, using the USB ports on my docking station seems to work just fine. I'm not sure why that is making a difference, but it does. I can't imagine that the Tiva board is using more power than my USB port can source.

  • Hi Richard,

    I'm not sure but your device driver version is old version.

    I highly recommend to uninstall driver and re-install again.

    It could be happened for this.

    Thank you.

    Ronie

  • Hello Richard,

    When connected to the Laptop, what all is being powered on the DK-TM4C1294 kit? Please note that DK-TM4C1294x is using the 5V from USB to power the board components.

    In the Device Manager, under USB sub section, you can check the current draw by the USB port of the DK-TM4C129x.

    Regards

    Amit

  • Thank you Amit. I had no idea you could view the power draw through Device Manager. That could very well be the problem. For some reason the DK-TM4C129x board is drawing 250 mA. Is that actual current draw or is it just something reported via USB by the board as an estimate of maximum power draw?

    I don't have anything else plugged into the board other than my device I am trying to program with it via the JTAG connector. However, even when I unplug the JTAG connection it is still reporting 250mA. It is a bit odd though, because when I plug the board into one of the USB ports that doesn't program properly, I can't find it under any of the hubs in the device manager. It powers the board and starts programming, but fails. Apparently those USB ports are not on a hub and therefore I cannot view their power draw through Device Manager. But when I plug into a USB port that does function, I can see it on one of the Hubs in Device Manager and it  shows that it draws 250mA.

  • Hello Richard,

    The TM4C129 draws it power from the USB. So even if JTAG is removed but not USB, the power draw will remain. As far as I remember the current is max of either port or the actual current draw.

    Do note that the TM4C129 board you are using has LCD and a lot of other components which may draw current. Also if you plug the same on the docking station what does it show.

    Another way of looking at the devices is to open device manager  and then "view" -> "devices by connection" to find out which hub it is connected to.

    Regards

    Amit

  • I think I have found the source of the problem. The two ports that will not allow LM Flash to program properly are my two USB 3.0 ports. I checked Dell's website for updates to the 3.0 drivers and installed the latest driver updates, but it still will not program through those ports. It works fine in all my USB 2.0 ports, just not my 3.0 ports. Is there possibly an issue with USB 3.0 and the LM Flash programming software? I went back to my coworker's laptop (which is the same Dell model as mine) and we found that his has the same issue. Apparently we tested in his 2.0 ports earlier and that worked fine, but when I tried using his 3.0 ports, we had the same problem.

  • I should re-phrase my question. I know it is not an issue with the LM Flash software because I can use the Stellaris kits with LM Flash to program via the JTAG connection just fine. Apparently it is a problem with the Tiva board.

  • Hello Amit,

    Actually this board does not have an LCD. There are no daughter boards plugged into it either. Just the main board with nothing else plugged in. But I do not believe it is a power draw issue at this point. Please see my replies where I found it is only my USB 3.0 ports that will not function properly with the TM4C1294. USB 3.0 should allow for even more current than 2.0, but it is my 2.0 ports that work.

  • Hello Richard

    If you can send a snapshot of the setup, I would try it on my side with a USB 3.0 port on my laptop/

    Regards

    Amit

  • As you can see, I am only connected to the target via the JTAG connection. No other components on the Tiva board. The cable plugged into the target is just for target power. The USB cable to the Tiva is connected to my 3.0 port. Thanks again Amit!

  • Hello Richard

    Can you please try removing jumper JP2? I do not have a EK-TM4C129 but only a DK-TM4C129 kit.

    Regards

    Amit

  • Same result with JP2 removed. It has a programming error after a few percent programming when conncected to the USB 3.0 port.

  • Hi,

       See, post below with another Stellaris ICDI and USB 3.0 issue.

       USB 3.0 Stellaris ICDI Compatibility issues?

    -kel

  • Thank you markel. It sounds like a very similar issue to what I am experiencing - unable to use the 3.0 port.