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?
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.
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)?
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/968/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 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.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/968/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/
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.
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\?
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/968/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!
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!
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
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
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
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.
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.
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?
Thanks,
Ricky