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.

MSP-FET: With IAR: Failed to set device voltage

Part Number: MSP-FET
Other Parts Discussed in Thread: MSP430FR5969, MSP430-FLASHER, MSPDS, MSP430F5529

Hello,

In the past I used the "old" MSP-FET430UIF debug interface in combination with IAR embedded workbench without any problems. Last week I bought two new MSP-FET and both of them gives the error "Fatal error: Failed to set device voltage. Session aborted". Interface dll version is 3.4.3.4.

Does anyone know about this issue and how can I solve it?

Thanks,

Ronald

  • Hi Ronald,

    Thanks for posting. Can you share what device you are trying to program? I ask because I see that DLL version 3.4.3.4 is the one you are using and I want to make sure you're not running into any device-specific issue that is fixed in a newer DLL version. You can find release notes for the MSP Debug stack if you scroll down this page http://www.ti.com/tool/mspds.

    Additionally, can you provide information about the connections you have made between the device and the MSP-FET and any passive components on the TEST/RST lines, how the device is being powered, and any additional information about IAR version you are using etc?

    Regards,
    Katie
  • Hi Katie,

    The connected device is the MSP430FR5969 and it works fine with the old MSP-FET430UIF. But I don't think the device type matters! I have the same error for all devices I connect (I tried several) and also if I don't connect anything. It looks like it is one of the first action to the new  MSP-FET! See the IAR log:

    Wed Jun 21, 2017 15:34:25: Using license: Standalone license - IAR Embedded Workbench for Texas Instruments MSP430 6.50

    Wed Jun 21, 2017 15:34:26: Firmware version 0.0.0.0

    Wed Jun 21, 2017 15:34:26: Interface dll version 3.4.3.4

    Wed Jun 21, 2017 15:34:26: Could not set device Vcc (Vcc) , voltage=0xce4

    Wed Jun 21, 2017 15:34:26: Could not set device Vcc : (Close) , vccOff=0x1

    Wed Jun 21, 2017 15:34:27: Fatal error: Failed to set device voltage.   Session aborted!

    Regards,

    Ronald

  • Hi Ronald,

    I think it's a little strange that the Firmware version that shows up for your MSP-FET is listed as all 0's. The first time you used the MSP-FET with IAR, did it ask you to perform a firmware update?

    Regards,
    Katie
  • Hi Katie,

    No, IAR did not ask for a firmware update for the MSP-FET! I also ask support from IAR to have a look at this issue!

    Regards,

    Ronald

  • Hi Ronald,

    We have something you might be able to try to force a firmware update. You could try using the MSP430-Flasher software latest version, which will include the latest DLL to force a firmware update of your FET tool. Just try to program something with the MSP430-Flasher and it should ask to update the MSP-FET firmware. If you do this, you could then start IAR again and see if IAR asks to change the firmware.

    Feedback I got from our tools team is that the way that output VCC of the MSP-FET is handled was changed a few releases ago - so if your MSP-FET currently has an older FW version in it than IAR expects it could cause problems. Hopefully using MSP430-Flasher you can force an update and resolve the issue. Let me know how it goes!

    Regards,
    Katie
  • Hi Katie,

    I tried the MSP430-Flasher first with the old MSP-FET430UIF which worked ok and then with the MSP-FET (new black one) and it didn't work!

    Then I tried "MSP430Flasher.exe -i DETECT"

    result was:

    - 1: Unknown FET type @ COM5

    - Select FET number:

    I do not know the FET number so I tried "1"! result:

    *  Initializinginterface @ COM5...done

    * Checking firmware compatibility:

    * FET firmware is up to date.

    * Reading FW version...done

    * Setting VCC to 3000 mV...

    # Exit: 44

    # ERROR: Could not set device Vcc

    *  Powering down...done

    *  Disconnecting from device...

    *  ----------------------------------------------------

    *  ERROR on close: Could not set device Vcc

    *  ----------------------------------------------------

    */

    Does this give any information?

    Regards Ronald

  • Hi Ronald,

    Can you please try this command with MSP430Flasher - it won't really work to read the device unless you hook the MSP-FET up for BSL, but it SHOULD display the firmware version as part of the command, and you can share this with us.

    msp430flasher.exe –b –r [bsl.txt,BSL]

    Regards,
    Katie
  • Hello, I am having similar issue with the new batch of MSP-FET.  

    These are some differences between the old MSP-FET and the new ones:

    1. New batch has a different cable with a choke.
    2. microUSB is sits very far in the enclosure such that some microUSB cables won't connect at all.
    3. The VCC error.

    c:\TI\MSP430Flasher_1.3.7>msp430flasher.exe -b -r [bsl.txt,BSL]
    * -----/|-------------------------------------------------------------------- *
    * / |__ *
    * /_ / MSP430 Flasher v1.3.7 *
    * | / *
    * -----|/-------------------------------------------------------------------- *
    *
    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ COM94 <- Selected
    * Initializing interface @ COM94...done
    * Checking firmware compatibility:
    * FET firmware is up to date.
    * Reading FW version...done
    * Setting VCC to 3000 mV...
    # Exit: 44
    # ERROR: Could not set device Vcc
    * Powering down...done
    * Disconnecting from device...
    * ----------------------------------------------------------------------------
    * ERROR on close: Could not set device Vcc
    * ----------------------------------------------------------------------------
    */

    c:\TI\MSP430Flasher_1.3.7>

  • Hi Katie,

    I have exactly the same result as Danny Chung using the command msp430flasher.exe –b –r [bsl.txt,BSL]!

    Regards,

    Ronald

  • Ronald,

    One option that you can try is to revert to an older version of MSP430-Flasher that has the same MSPDS as the one included in your version of EW430.

    Version 1_03_03_00 should have a MSPDS that matches your current setup (version 3.4.3.4). Use this version of the MSP430-Flasher to update the firmware on the MSP-FET.

    Regards,

    Matthew

  • Hello Danny,

    Thank you for posting. Are you also using IAR Embedded Workshop in conjunction with the MSP-FET? If so, what version of Embedded Workshop are you using? 

    Regards,

    Matthew

  • Danny, Ronald,

    Can you both please look on the back of your MSP-FET and report the serial number? This will help to give us some hardware information about your tools.

    Regards,
    Katie
  • I just received my "brand new" MSP-FET" emulator a few days ago and tried it on CCS 6.2 and had this same "Could not set device VCC" error message. Very frustrating as this is the emulator that right out of the box. It is on a custom board. I was able to use the MSP eZ-FET LITE emulator on my MSP430F5529 launch pad to bring up my custom board .However, when i plugged in the MSP-FET and launch CCS6.2, i receive this "Error initializing Emulator: Could not set device Vcc" error message.

    Anyway, per this discussion thread, I have tried MSP430Flasher 1.3.3 and 1.3.15 and get the following output:

    * -----/|-------------------------------------------------------------------- *
    * / |__ *
    * /_ / MSP430 Flasher v1.3.3 *
    * | / *
    * -----|/-------------------------------------------------------------------- *
    *
    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ COM23 <- Selected
    * Initializing interface @ COM23...done
    * Checking firmware compatibility:
    * FET firmware is up to date.
    * Reading FW version...done
    * Setting VCC to 3000 mV...
    # Exit: 44
    # ERROR: Could not set device Vcc
    * Powering down...done
    * Disconnecting from device...
    * ----------------------------------------------------------------------------
    * ERROR on close: Could not set device Vcc
    * ----------------------------------------------------------------------------
    */

    * -----/|-------------------------------------------------------------------- *
    * / |__ *
    * /_ / MSP Flasher v1.3.15 *
    * | / *
    * -----|/-------------------------------------------------------------------- *
    *
    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ COM23 <- Selected
    * Initializing interface @ COM23...done
    * Checking firmware compatibility:
    * FET firmware is up to date.
    * Reading FW version...done
    * Setting VCC to 3000 mV...done
    * Accessing device...done
    * Reading device information...done
    * Unlocking BSL memory...done
    * Dumping memory from BSL into bsl.txt...done
    *
    * ----------------------------------------------------------------------------
    * Arguments : -b -r[bsl.txt, BSL]!
    * ----------------------------------------------------------------------------
    * Driver : loaded
    * Dll Version : 31001000
    * FwVersion : 31000003
    * Interface : TIUSB
    * HwVersion : U 3.0
    * JTAG Mode : AUTO
    * Device : MSP430F5529
    * EEM : Level 7, ClockCntrl 2
    * Read File : bsl.txt (memory segment = BSL)
    * VCC OFF
    * ----------------------------------------------------------------------------
    * Powering down...done
    * Disconnecting from device...done
    *
    * ----------------------------------------------------------------------------
    * Driver : closed (No error)
    * ----------------------------------------------------------------------------
    */

    Note: my MSP-FET serial number is: 17050001BW

  • update:
    I plugged this msp-fet into a MSP-EXP430F5529 board and use the project example that comes with the MSP430 experiment board installer to make sure that the problem was not due to my customer board. The result is the same such that i still received the "Error initializing emulator:
    Could not set device Vcc" Error
  • All,

    I was able to get one of the new second generation MSP-FETs (CE sticker/label on case or W behind serial number) which are currently shipping and was able to reproduce this issue. These second-generation MSP-FETs are only supported CCSv7.0 and above (see message at the top of the "Description" section of the MSP-FET tool folder www.ti.com/.../msp-fet). The error message you are getting is because CCSv6.1 is from before the new MSP-FET and therefore cannot truly recognize the MSP-FET - this manifests in CCS never prompting you to update the MSP-FET firmware, and in the "could not set device Vcc" error message.

    The solution is to use the latest version of CCS. Can you please let me know if you continue to have issues even when using CCSv7.2? If for some reason you are unable to use latest CCS, please let me know. We realize there are some specific cases where people cannot upgrade (though we do always recommend updating to get latest tools fixes and compiler fixes) and so are working for a solution for older versions, but this is not yet available.

    For others using IAR, please try using at least IAR EW430 7.1 (for MSP430) or IAR EWARM 8.10 (for MSP432) or newer.
     
    Regards,
    Katie

  • Hello everyone,

    We are having the same problem with a new batch of 4 MSP-FET. With older FETs we don’t have this problem.

    We are using IAR 6.50.1 and the received messages are:
    Fatal error: Failed to set device voltage. Session aborted.
    In the Debug Log windows, with exception of the interface dll version, the error is the same.
    Fri Jul 21, 2017 10:01:54: Using license: Network license: MVDIARLIC (STD)
    Fri Jul 21, 2017 10:01:55: Firmware version 0.0.0.0
    Fri Jul 21, 2017 10:01:55: Interface dll version 3.8.0.2
    Fri Jul 21, 2017 10:01:55: Could not set device Vcc (Vcc) , voltage=0xce4
    Fri Jul 21, 2017 10:01:55: Could not set device Vcc : (Close) , vccOff=0x1
    Fri Jul 21, 2017 10:02:13: Fatal error: Failed to set device voltage. Session aborted!

    We tried several devices with different hardware, it works fine with the old FETs and failed with the new ones.

    We modified the hardware of one device to use the target Vdd instead of setting the voltage from the FET and the problem disappeared.

    We still need to try the latest CCS or IAR, but maybe the fact that using target Vdd works can help to find a solution.

    Will get back if anything changes.

    Regards,
    Agustin
  • hi everyone,

                     Just a quick update the problem went away after using ccsv7. Just out of curiosity, does the previous FET has the same name or it has different name?

    regards,

    zhenyu

  • Hi zhenyu,

    Thanks for the feedback that using the latest CCSv7 did indeed resolve the issue - that is as we expected but it is good to have your confirmation that this resolved your issue as well.

    Agustin,

    I would recommend trying the latest CCSv7 or IARv7 as I believe this should resolve the issue.

    Regards,
    Katie
  • Hello,

    Using IAR 7.10.2 did work.

    However, we need to use other versions of IAR (6.50 and others) for projects we already finished, will this be possible?

    With the same setup it will program the target using IAR 7.10 but not with IAR 6.50.

    Regards,

    Agustin

  • Hi all,

    I have posted a sticky thread regarding the solution to this issue.
    e2e.ti.com/.../614826

    this includes a patch installer for older IAR versions.

    I hope that this helps.
    Regards,
    Katie
  • We'll try it.

    Thank you!

  • Seems to be working with IAR 6.50.
    Thanks!

**Attention** This is a public forum