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.

MSP430F4619: MSP430.dll issue with Elprotronic and IAR

Part Number: MSP430F4619
Other Parts Discussed in Thread: MSP-FET, MSP430FG4619, UNIFLASH

I was attempting to program an older product that we have had for about 12 years. It is built using the MSP430F4619. The design works great and have not had issues programming it in the past. We have not made any changes in about 4 years. I recently needed to make a change in the code. I use IAR as my programmer / code debugging tool. I also use Elprotronic in the manufacturing cells when we build devices. I have been using both tools with current designs using other of the MASP430 devices. I have both an old Gray FET Tool and a newer Black FET Tool. To obtain a base line, on the software, I attempted to download/debug the last code release to the device using IAR [7.12.2] and the newer Black FET tool which worked when last used with IAR [6.20]. It was unable to program the device and often locked up the IAR application; complaining of communication issues. I also tried Elprotronic to program the product using the .r43 file. It also was unable to program the device. In trying to chase down the problem, I contacted both IAR and Elprotronic and I first tried response from Elprotronic. They had me try a few options updating and checking to insure the MSP430.dll and FET tool firmware matched. None of the steps offered worked. I indicated I had an older gray FET tool from TI and Elprotronic suggested I try using it. It did require a firmware update, but it worked. I then used the same older FET tool with IAR and it worked.

 

I then tried the black FET tool again [tried 2 different black FET tools]. I get Communication error and complaining about the setting for Spy-by wire and JTAG issues. Why does the old gray tool work, but the newer black tool does not work? How can I get the Black FET tool to work? Is there a new MSP430.dll update for the black FET tool that addresses this? What changed from the release of the MSP430.dll that was used with IAR 6.20 and the one release currently?

  • Hi Jim,

    Please help me with some clarifications:

    When you mention the "black FET" tool, does the front of the tool say MSP-FET ?

    Conversely, when you mention the "grey FET" tool does the front of the tool say MSP-FET430UIF?

    Thanks,
    -Chris
  • Yes, the gray one is the old MSP-FET430UIF. I think I purchased it in 2005. The black one [MSP-FET Flash Emulation Tool] was purchased around 2010 or so. The black one replaced the gray one and I do not think there was ever a distinction in device. 

    I have performed some checks on past releases of IAR to identify what release level last worked and when it stopped working to narrow down the changes in the MSP430.dll. I was able to get the Black MSP-FET to work with IAR 6.20.1. So some change in the MSP430.dll since 3.4.3.4 broke the JTAG interface with the MSP430F4619. I tried IAR 6.50.5 [MSP430.dll  3.7.7.1] and it failed to download.

    So some change in the MSP430.dll from version 3.4.3.4 to 3.7.7.1 caused the Black MSP-FET tool to stop working with the JTAG interface programming of the MSP430F4619.

    I was made aware that there is a newer MSP430.dll with IAR 7.12.4 and am going to try that next.

  • I tried IAR 7.12.4 and it still does not work with the MSP430FG4619. [I apologize, in the part number above I failed to include the "G"] The operation is the same . The "Emulator: Downloading and verifying application ..." gets a small sliver of Green and then hangs indefinitely.
  • I left IAR running to see if it would ever complete. It did after about 1.5 hours. Below is the debug window capture, hopefully it indicates a possible reason for failure.

    Tue May 21, 2019 12:09:51: IAR Embedded Workbench 7.12.2 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\430\bin\430proc.dll)
    Tue May 21, 2019 12:09:52: Using license: Mobile license - IAR Embedded Workbench for Texas Instruments MSP430 7.12
    Tue May 21, 2019 12:09:53: Firmware version 3.12.0.0
    Tue May 21, 2019 12:09:53: Interface dll version 3.14.0.0
    Tue May 21, 2019 12:10:08: Device : MSP430FG4619
    Tue May 21, 2019 12:10:08: External voltage : 0.0 V
    Tue May 21, 2019 12:10:08: VCC voltage : 3.3 V
    Tue May 21, 2019 12:10:09: Could not reset device : (SetEEMClockControl)
    Tue May 21, 2019 12:10:11: Could not reset device : (Reset) , method=0x1, execute=0, releaseJTAG=0
    Tue May 21, 2019 12:10:36: Could not reset device : (Reset) , method=0x1, execute=0, releaseJTAG=0
    Tue May 21, 2019 12:10:37: Could not reset device : (Reset) , method=0x1, execute=0, releaseJTAG=0
    Tue May 21, 2019 12:10:45: Could not find device (or device not supported) : (Reset) , method=0x1, execute=0, releaseJTAG=0
    Tue May 21, 2019 12:10:46: Could not reset device : (Reset) , method=0x1, execute=0, releaseJTAG=0
    Tue May 21, 2019 12:11:06: Could not find device (or device not supported) : (Reset) , method=0x1, execute=0, releaseJTAG=0
    Tue May 21, 2019 12:11:25: Could not write device memory : (WriteMemory) , address=0x2100, buffer=Control Values - , count=0x5ad, WRITE
    Tue May 21, 2019 12:12:01: Could not write device memory : (WriteMemory) , address=0x26ae, buffer=1@, count=0xd910, WRITE
    Tue May 21, 2019 12:23:11: Could not write device memory : (WriteMemory) , address=0xfff8, buffer=@)@)
    Tue May 21, 2019 12:23:11: )@&NLB@@N@@S@@@@@~@, count=0x816, WRITE
    Tue May 21, 2019 12:27:44: Could not find device (or device not supported) : (WriteMemory) , address=0xfff8, buffer=@)@)
    Tue May 21, 2019 12:27:44: )@&NLB@@N@@S@@@@@~@, count=0x816, WRITE
    Tue May 21, 2019 12:27:53: Could not write device memory : (WriteMemory) , address=0xfff8, buffer=@)@)
    Tue May 21, 2019 12:27:53: )@&NLB@@N@@S@@@@@~@, count=0x816, WRITE
    Tue May 21, 2019 12:28:03: Could not write device memory : (WriteMemory) , address=0xfff8, buffer=@)@)
    Tue May 21, 2019 12:28:03: )@&NLB@@N@@S@@@@@~@, count=0x816, WRITE
    Tue May 21, 2019 12:28:35: Verify error at address 0xd767 on target 0xff in file 0x1
    Tue May 21, 2019 12:28:35: Verify error at address 0xd766 on target 0xff in file 0x10
    Tue May 21, 2019 12:28:35: Verify error at address 0xd765 on target 0xff in file 0x17
    Tue May 21, 2019 12:28:35: Verify error at address 0xd764 on target 0xff in file 0x1a

    I deleted thousands of lines with "Verify error at address" to save space.

    Tue May 21, 2019 12:29:53: Verify error at address 0x4a0f on target 0x0 in file 0x43
    Tue May 21, 2019 12:29:53: Verify error at address 0x4a0e on target 0x0 in file 0xd
    Tue May 21, 2019 12:29:53: Verify error at address 0x4a0d on target 0x0 in file 0x4c
    Tue May 21, 2019 12:34:19: Verify error at address 0x10511. Value should be 0x4c but is 0x0.
    Tue May 21, 2019 12:34:19: Verify error at address 0x10510. Value should be 0xf but is 0x0.
    Tue May 21, 2019 12:34:19: Failed to load debugee: D:\projects\upem-builds\Firmware\MicroPEM_V3_2_BT_B4_Fix2_BluetoothAlwaysOn_SD\Debug\Exe\MicroPEM_V3_2d_BT_B4_Fix2_BluetoothAlwaysOn.d43
    Tue May 21, 2019 12:34:27: IAR Embedded Workbench 7.12.2 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\430\bin\430proc.dll)
  • Hi Jim,

    The MSP-FET (the black FET tool) has indeed been updated since 2010. But your version should still be compatible per this E2E post .

    Do you mind telling me what is the serial number of your MSP-FET found on the back of the device?

    -Chris

  • My serial numbers on the 2 Black MSP-FET tools that work great for several other MSP430 designs that use SPI by Wire and IAR 6.20 JTAG using an older MSP430.dll is S/N# 140700048 and S/N#140700033. These do not work with newer versions of the MSP430.dll using JTAG. The Old Gray MSP-FET430UIF that DOES work with the current MSP430.dll using IAR 7.12.4 is S/N# 1112008746

  • Hi Jim,

    Download the latest version of the MSP debug stack by clicking here. The newest version of the MSP430.dll is included in the file - try to install it and let me know if it solves your issue.

    Thanks,

    -Chris

  • Hi Chris,

    For clarity, I searched my C-drive for "MSP430.dll". Since I was interested in IAR specifically, I located the most recent MSP430.dll for IAR in the:

    C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\430\bin directory

    I renamed the MSP430.dll with a file date tag in the rename and copied the new MSP430.dll from the link above into the directory.

    I then loaded the IAR project that I have been working with using the Older Gray MSP-FET430UIF but now have switched out for the black MSP-FET Flash Emulation Tool connected to the target.

    I started IAR, clicked to Re-build all, then clicked to Download and Debug. A message identified the MSP-FET Flash Emulation Tool needed to be updated. The update completed normally [about 2-3 minutes] and then the "Emulator: Downloading and verifying application" progress bar showed a similar sliver of green when the previous MSP430.dll failed. After about 10 minutes the progress bar jumped to the 50% line. The red and green lights on the black MSP-FET Flash Emulation Tool are blinking as what I hope is an indication that it is still trying to download. 

    Then the Progress bar dropped back to a 0.25 inch amount. And soon progressed to a 0.5 inch. It is advancing slowly.It then stopped as if it completed successfully, but it has actually exited the debugger window.

    I closed IAR and started it again to retry. This time I went to options and set JTAG speed to slow. 

    Here is the information from the debug window.

    ------------------------------

    Wed May 29, 2019 14:58:46: IAR Embedded Workbench 7.12.2 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\430\bin\430proc.dll)
    Wed May 29, 2019 14:58:46: Using license: Mobile license - IAR Embedded Workbench for Texas Instruments MSP430 7.12
    Wed May 29, 2019 14:58:48: Firmware version 3.12.0.0
    Wed May 29, 2019 14:58:48: Interface dll version 3.13.0.1
    Wed May 29, 2019 14:58:51: Unknown device : (OpenDevice) , Device=MSP430FG4619, PwLength=0
    Wed May 29, 2019 14:59:03: Fatal error: Could not find device (or device not supported) Session aborted!
    Wed May 29, 2019 14:59:03: IAR Embedded Workbench 7.12.2 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\430\bin\430proc.dll)

    ------------------------------

    I think the current problem may be related to some differences in versions, but in any case it is still not working. Thoughts on what to try next?

     

  • Is the firmware identified the firmware on the MSP-FET?

    Wed May 29, 2019 14:58:48: Firmware version 3.12.0.0
    Wed May 29, 2019 14:58:48: Interface dll version 3.13.0.1

    Where can I find the firmware to match the dll? Is there a dos command line interface to update a MSP-FET tool?
  • Jim,

    > You can give UniFlash a try. You just have to generate a .out file with CCS and load in the program through the GUI.

    > Another option just to verify the status of the FET is try an example program on CCS Cloud. 

    Here is a link to a simple example for the MSP430F4619. Click "Import to IDE" and the upper right and try to run the program in CCS Cloud. Let me know if it works!

    -Chris

  • I do not have UniFlash. I use IAR and have used it since the 2004 time frame. I do not wish to change to Code Composer. I would like to continue debugging the MSP430FR4619 using IAR.

    I tried the fix specified and it did not work. I asked a question concerning the difference in .dll and the executable versions and did not receive a response. 

    Today I received that this has been closed.  

    This is still an issue.

  • Hi Jim,

    You do not need to change to Code Composer. Code Composer Cloud (CCS Cloud) can be used as a troubleshooting method as it will automatically install the latest MSP-FET firmware and drivers.

    This will help us identify and possibly solve the issue.

    You do not need to download Code Composer Cloud, it is available online - here. This will be the easiest way to get the latest firmware for the MSP-FET to see if we can solve your issue.

    -Chris

  • Hi Jim,

    Were you able to test the instructions above? Let me know if you have resolved your issue.

    Thanks,

    -Chris

  • I have exactly the same issue with MSP-FET. I uses Olimex emulator for IAR 6.10 workbench but recently decided to use IAR 7.12 which does not support Olimex. So I switched to MSP-FET emulator. Doesn't work. Says : "Fatal error: Couldn't find the device".

    I have contacted IAR but they know nothing. Seems to me that this is a TI problem. What to do?

  • The solution I am using is to use the much older MSP-FET 430UIF. It works. TI released a new .dll that did not work with IAR, and asked for me to test using other tools. I have not had time to try that solution. I will get around to it, just have development issues to deal with first.

    I can tell you the older FET tool works fine. That is what I am using to take care of the development issues. 

  • Problem is that MSP-FET 430 UIF is retired and is not available anymore. As I understand it, MSP-FET was supposed to replace the UIF. I heard from someone that the MSP-FET can't be attached to USB 3.0, only USB 2.0, but it seems hard to believe that the only debugging tool TI offers for MSP development won't run on state-of-the-art PC's?  

    I've contacted IAR to hear what they say. Am awaiting their response.

**Attention** This is a public forum