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: Creating a windows software for updating my device

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: UNIFLASH

Hello,

I have a medical device that uses the TM4C123GH6PM mcu,

I want to create a windows program that will connect to that device in order to update the software in the future.

We connect to the device with a USB DFU.

The options I know about for burning the device are:

1) LM flash programmer CLI - I made it work for now with it but can I legally distribute it with my software? 

2) I know about sflash but from what I understand it wont work for USB DFU.

3) I also know a about the UNIFLASH, but never worked with it and still trying to  make it work using the CLI.

What is my best option for burning a new software on these devices?

Thanks,

Nadav

  • Hi Nadav,

    I'm surprised you even have some sort of CLI working for LM Flash, it doesn't really support that. As far as distributing, I don't believe that would be the case and for a medical application it certainly is not something we'd recommend as LM Flash is not meant for distribution in such a situation.

    Correct that sflash won't work for DFU, but we do have a USB DFU tool in the TivaWare tools. You can review details in the document SW-TM4C-TOOLS-UG-2.1.4.178.pdf look for USB DFU Programmer. Was there a reason that wouldn't work?

    Other options could include third party open source USB DFU utilities.

    As far as UNIFLASH goes, I don't know myself, but can see if a CCS expert can chime in on that topic.
  • Thanks!

    I see in "SW-TM4C-TOOLS-UG-2.1.4.178.pdf"  that I can use "dfuprog" but I don't have the executable in "c:\ti\TivaWare_C_Series-2.1.4.178\tools\bin\"

    I do have the source code but I'm having trouble building the solution.

    Can I download "dfuprog.exe" from somewhere?

  • The UniFlash license does allow for redistribution. More information on its command line interface is available here: processors.wiki.ti.com/.../UniFlash_v4_Quick_Guide

    Regards,
    John
  • Okay, thanks (and what about the LM flash programmer license?)

    I believe that what I need is lmdfu or dfuprog that I have in the tiva tools directory.
    The problem is that I dont have the exe of dfuprog and for lmdfu I only have the lib file.
    My environment is c# only so I can't compile these projects or use the lib file.
  • Hello Nadav,

    I do not see any licensing information for LM Flash that explicitly states it can be redistributed, so I would say the answer is 'no' for LM Flash.

    As far as dfuprog, you should be able to use Visual Studio to import the VS solution and build it to get the .exe file. Is it possible for you to try using Visual Studio to build the given solution in TivaWare? I don't quite follow when you say your environment is C# only. If all you need is the .exe, why not compile it elsewhere and just use the .exe from that?
  • I managed building dfuprog.exe on another computer and everything works fine, thanks for the help!