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.

CC3200 Uniflash "Error loading DLL" message

Other Parts Discussed in Thread: UNIFLASH, CC3100, CC3200

I have the exact same problem as Dan OShea.

I've tried on several new windows (XP, 7, 2008 server) installations and I get the exact same problem.

And I have the same DLL files as Dan listed.

Any Idea what's wrong or missing?

  • Hi,

    The only way I am able to reproduce this problem on my machine is if FlashAPI.dll is actually missing from the folder in your screenshot, so it must be having problems with finding it for some reason.

    The error message is supposed to print out the exact path of the DLL it is trying to load, but there seems to be a bug with that. So I'm including an updated version of a file that will allow us to capture additional debugging information. Can you download the attached FlashCC3xIntegration.dll file and replace the one in \eclipse\plugins\com.ti.uniflash.common.libs_1.0.0.201502021424\libs\ and try your test case again (back up the original file to be safe)?

    FlashCC3xIntegration.dll

    Please report back the results.

    Thanks,

    Ricky

  • Hi,

    It is also reported in http://e2e.ti.com/support/wireless_connectivity/f/968/t/402062

    Probably machine specific issue but please run follow Ricky's instructions and report back.

    Shlomi

  • Thanks for you quick reply!

    this is what I get when I use this new dll file,

    [11:49:06] INFO: >> Error loading DLL: C:\ti\uniflash_3.2\eclipse\plugins\com.ti.uniflash.wireless.files_1.0.0.201502021424\cc3xxx\bin/FlashAPI.dll
    [11:49:06] INFO: The operation completed successfully.
  • Thanks for running the test case. It's weird since the file that the path points to seems to exist, so I'm not sure why you are seeing the error.

    There are a few more steps I can recommend.

    1. Can you download another update to the FlashCC3xIntegration.dll again? This one fixes the incorrect "The operation completed successfully." output and prints out the actual output of the DLL load error. In the case of a missing DLL, it should print "The specified module could not be found." I want to confirm that this is the error you will get as well.

    4606.FlashCC3xIntegration.dll

    2. Try using the UniFlash command line tool, and see if you get a similar error.

    3. As suggested in the other thread, can you try to start UniFlash with "Run as Administrator" if you have the right permissions?

    Please report back with your observations.

    Thanks,

    Ricky

  • This is the output with the new DLL file.

    [14:33:26] INFO: >> Error loading DLL: C:/ti/uniflash_3.2/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201502021424/cc3xxx/bin/FlashAPI.dll
    [14:33:26] INFO: >> The specified module could not be found.

    [14:33:26] INFO: >> Error loading DLL: C:/ti/uniflash_3.2/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201502021424/cc3xxx/bin/FlashAPI.dll
    [14:33:26] INFO: >> The specified module could not be found.

    It doesn't make any difference running UniFlash as administrator, I still get the same error. I've tried it on a windows XP, windows 7 and a windows 2008 server.

    Side note: Windows XP doesn't come with Certutil.exe which is needed for installing the driver certificates, So if you want to avoid the error at the end of the UniFlash installations you need to install Microsoft Windows Server 2003 Administration Pack before installing UniFlash.

    More infomation about Certutil.exe on Windows XP, http://support.microsoft.com/kb/934576 

    I don't really understand how the command line tool works, according to the wiki there should be some example but I can't find them in 

    <installDir>/uniflash<version>/ccs_base/scripting/examples/uniflash/cmdLine/

    processors.wiki.ti.com/.../UniFlash_Quick_Start_Guide

  • For command line, you are looking at the Wiki page for the version we had in UniFlash 3.1. We had to introduce a different command line system in UniFlash 3.2 to support the CC3100/CC3200 devices. Please read the following link for more information:

    processors.wiki.ti.com/.../CC31xx_%26_CC32xx_UniFlash

    In general, you should start the GUI, set up your session (setup COM port, add files, etc.), save the session, and use it for the command line. And then you just point to the saved session file (*.usf) using uniflashCLI.bat and give it the command you want to run.

    As for why you are getting the "The specified module could not be found" error, I'm still not sure as the DLL seems to be there from your screenshot. I'll continue doing some research on how we can go forward with this.

    Thanks,
    Ricky
  • I still get the same error with the command line tool, even when running it in a Administrator command prompt.

    C:\ti\uniflash_3.2> uniflashCLI.bat -config uniflash.usf -setOptions debug=true -operation format
    
    ***** Texas Instruments Universal Flash Programmer *****
    
    > Configuring UniFlash with the following configuration: C:\ti\uniflash_3.2\eclipse\plugins\..\..\uniflash.usf
    
    > Device: SimpleLink Wifi CC3100/CC3200
    > Interface: CC3x Serial(UART) Interface
    
    > Template XML: C:\ti\uniflash_3.2\uniflash_session\templates\CC3xxx_template.xml
    > Token XML: C:\ti\uniflash_3.2\uniflash_session\templates\CC3xxx_token.xml
    > User setting [debug]: true
    
    > Executing operation: format
    > Relevant settings:
            Secure: false
            Capacity: 1MB
    INFO: >> Error loading DLL: C:/ti/uniflash_3.2/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201502021424//cc3xxx/bin/FlashAPI.dll
    INFO: >> The specified module could not be found.
    
    INFO: > Executing Operation: Connect
    INFO: > Executing Operation: Disconnect
    Exception in thread "main" java.lang.Error: Invalid memory access
            at com.sun.jna.Native.invokeInt(Native Method)
            at com.sun.jna.Function.invoke(Function.java:383)
            at com.sun.jna.Function.invoke(Function.java:315)
            at com.sun.jna.Library$Handler.invoke(Library.java:212)
            at $Proxy0.ExecuteOperation(Unknown Source)
            at com.ti.uniflash.cc3xx.integrationlayer.IntegrationLayerLibraryProxy.ExecuteOperation(IntegrationLayerLibraryProxy.java:42)
            at com.ti.uniflash.cc3xx.controlflow.UserOperationsHandler.executeTargetOp(UserOperationsHandler.java:311)
            at com.ti.uniflash.cc3xx.controlflow.UserOperationsHandler.ExecuteOp(UserOperationsHandler.java:341)
            at com.ti.uniflash.cc3xx.commands.base.BaseExecuteCommand.execute(BaseExecuteCommand.java:22)
            at com.ti.uniflash.cc3xx.commands.base.GenericCommandHandler.execute(GenericCommandHandler.java:16)
            at com.ti.uniflash.commandline.CC3xCommandLineHandler.executeOperation(Unknown Source)
            at com.ti.uniflash.commandline.CommandLine.executeOperations(Unknown Source)
            at com.ti.uniflash.commandline.CommandLine.main(Unknown Source)
    
    C:\ti\uniflash_3.2>
    C:\ti\uniflash_3.2> dir C:\ti\uniflash_3.2\eclipse\plugins\com.ti.uniflash.wireless.files_1.0.0.201502021424\\cc3xxx\bin\FlashAPI.dll
     Volume in drive C has no label.
     Volume Serial Number is 160F-EE89
    
     Directory of C:\ti\uniflash_3.2\eclipse\plugins\com.ti.uniflash.wireless.files_1.0.0.201502021424\cc3xxx\bin
    
    2015-02-02  20:24            54 784 FlashAPI.dll
                   1 File(s)         54 784 bytes
                   0 Dir(s)  590 874 619 904 bytes free
    
    C:\ti\uniflash_3.2>

  • I am experiencing the exact same issue.

    However I do not have " FlashAPI.dll"  I just re installed the uniflash program.

    I'm running windows 8.1 64 bit.

  • Update, I just re-installed again, and all files where there. As in "Prodigy " first post.

    Is there not an older version of uni flash which we can use ?
  • All,

    I think I found a potential fix for this.

    Can you try downloading the attached FlashAPI.dll and replace the one in \eclipse\plugins\com.ti.uniflash.wireless.files_1.0.0.201502021424\cc3xxx\bin\?
    2475.FlashAPI.dll

    The problem seems to be that the library was compiled with a different version of the C++ library, and therefore there are some dependency problems if a particular c++ redistributable is missing from the system. The updated library is meant to hopefully fix this problem.

    Please let me know if this update fixes the problem for you.

    Thanks,

    Ricky

  • Thank you Ricky!

    I don't have the CC3200 board here right now so I can't test it fully but now UniFlash doesn't give me any errors when starting it!

    I'll report back as soon as I tested it with the board.

    Thank you for you're quick and very helpful support!

  • Now I don't get the "Error loading DLL" error anymore but UniFlash still doesn't work, now I get an error "Can't connect to device !!" seams like it can't detect the device connected to the com port but the com port seam to works in tera term ?

  • Hi,

    What board are you using? is it CC3100 BP or CC3200 LP?

    What is the jumper settings?

    What do you see on the device manager? can you list the detected COM ports?

    Shlomi

  • It's the CC3200 LP board and I had the default jumper settings, I've totally missed that you need the SOP2 jumper present when flashing.

    Now it all works, thank you!

  • Greate, good to hear.
  • Worked for me, I was able to erase and get the version number of the CC3200 device.  I am still having issues with programming the mcuimg.bin, I get a "Open operation failed" when I try and write.

    Could this be related?

    What redistributable is missing?

  • Worked for me, I can erase and get the version number however I am getting a "open operation failed" message.  Could this be related, what redistributable is missing?

    Thanks

  • Thanks for the update.

    No, it is not related.

    Usually, the "open operation failed" is becasue the serial flash gets full.

    With the new Uniflash v120, you should get more debug info.

    Which version of Uniflash are you using (can see it via help->about)?

    It is also possible that the extra debug info is not checked. Please go to Windows->Preferences. Then under 'Uniflash Preferences' you can see the 'print out additional...'. Just check it.

    In any case you can see that the error is related to the serial flash getting full, the easiest way is to start clean by formatting the serial flash, program the service pack and then the rest of the files.

    Regards,

    Shlomi

  • All,

    I am having the same issue on the 123 version. I tried downloading the above files pointed by you, and put them in ,
    \eclipse\plugins\com.ti.uniflash.wireless.files_1.0.0.201502021424\cc3xxx\bin\ (FlashAPI.dll)
    \eclipse\plugins\com.ti.uniflash.common.libs_1.0.0.201502021424\libs\ (FlashCC3xIntegration.dll)

    but get an error of

    ``uniflash could not initialize class user operations handler''

    Any help?

    Regards,

    VITI
  • VITI,

    What I suggest instead of replacing libraries is to download the new Uniflash.

    Please follow the post https://e2e.ti.com/support/wireless_connectivity/f/968/t/424986

    Install v3.3 and let me know if you still experience the issue.

    Shlomi

  • Hi,

    I switched from version 3.2.0.00123 to 3.2.1.00000 of Uniflash, and this error is gone now.

    Regards,

    VT
  • Great. I am closing this thread.
  • Dear Ricky,

    I was using same Win 8.1 64 bit PC & getting same error loading DLL message.

    After using new FlashAPI.dll the initial error message is solved but when I try to send FORMAT command uniflash stops operating & crashes.

    Pls help to get going further.

    Jay

    email : jay.thakore@jci-hitachi.com

  • Jay,

    Can you try installing the latest version of UniFlash (v3.4.0.00003) to see if it resolves your problem?

    http://processors.wiki.ti.com/index.php/Category:CCS_UniFlash#Download_the_Latest_UniFlash_Web_Installer

    Thanks,

    Ricky

  • Ricky,
    I am using the latest version of UniFlash(v3.4.0.00003) , and I met the same error as follow:

    [21:39:34] INFO: >> Error loading DLL: D:/TI/uniflash_3.4/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201511021134/cc3xxx/bin/win/FlashAPI.dll
    [21:39:34] INFO: >> �Ҳ���ָ���ij���

    HELP!
  • Ricky , I installed the latest version of UniFlash,but I still have the errors:

    [21:39:34] INFO: >> Error loading DLL: D:/TI/uniflash_3.4/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201511021134/cc3xxx/bin/win/FlashAPI.dll
    [21:39:34] INFO: >> �Ҳ���ָ���ij���

    help me,please.....

    Thanks,

    Alien2016
  • Alien2016,

    Can you let me know if you are using the CC3200 LaunchPad, or some other board? We are currently investigating a problem with a library required by UniFlash that only gets installed when using the CC3200 LaunchPad, and I want to see if this is the problem you are seeing.

    Thanks,

    Ricky

  • Hi Ricky,

    I have the same issue with UniFlash V3.4 when I want to program the firmware into the CC3200 LaunchPad (V3.2). My OS is Win XP-64 English version. The error message is as follows,

    [15:45:15] INFO: >> Error loading DLL: C:/ti/uniflash_3.4/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201511021134/cc3xxx/bin/win/FlashAPI.dll
    [15:45:15] INFO: >> The specified procedure could not be found.



    Sunglin.

  • Sunglin,

    Is it possible for you to run Dependency Walker (www.dependencywalker.com/depends22_x86.zip) on the FlashAPI.dll?

    This error usually means that a dependency is missing, so I want to see if we can figure out which dependency it is.

    Just download the package, and open C:/ti/uniflash_3.4/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201511021134/cc3xxx/bin/win/FlashAPI.dll in Dependency Walker. Then you can save the DWI file.

    Thanks,
    Ricky
  • Hi Ricky,

    The *.DWI file was attached. It seems like some dll files are missing. Please take a look at the attached file.  Would you mind to let me know how to solve this issue? Thank you.

    PS:Please change the extension file name from .txt to *.dwi

    Sunglin.

    FlashAPI.txt

  • Hi Rikey,

    I just had the same error as Sunglin on the Windows 7 64-bit computer with a fresh installation of the latest uniflash 3.4.
    After running Dependency Walker it seems like the FTDI2XX.dll was missing and I needed to install the driver (by plugging in an FTDI chip)
    After that the error was gone and everything is fine.
    My comment is why including the FTDI dll in the FlashAPI? In my case the computer is for production and we use serial cable to the PC?

    Thanks,
    Yuval
  • Yuval,

    The problem with FTD2XX.dll not installing until a device with FTDI chip is connected is a known issue. We are looking into ways to address this for future releases.

    The problem that Sunglin is running into is a different problem, since they were already using a CC3200 LaunchPad. Dependency Walker also confirmed that FTD2XX.dll is available, but other dependencies seem to be missing. I'm trying to do some testing on this to see if it is a Windows XP issue.

    Thanks,
    Ricky
  • Sunglin,

    Looking at the DWI you provided, it seems the version of the FlashAPI.dll you have is the one that isn't compatible with Windows XP. This version of the DLL should not have been included with UniFlash 3.4.0, so I'm not sure why you have this version.

    Can you let me know how you installed your version of UniFlash (offline install, web install, or updated from a previous version of UniFlash)?

    Also, can you try replacing the version of FlashAPI.dll you have with the attached file (need to rename), and see if the error goes away?

    6278.FlashAPI.txt

    Thanks,

    Ricky

  • Hey, I found that when we insert the FTDI usb to uart dongle and install the driver, we can use uniflash to flash well. I'm using uniflash_3.4.000003, thanks.