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.

MSP430FR5964: MSP-FET "ERROR: Could not reset device" during password protected device programming

Part Number: MSP430FR5964
Other Parts Discussed in Thread: MSP-FET

Hello,

I receive an error during programming MSP430FR5964 with MSP-FET tool used with MSP430Flasher:

./MSP430Flasher.exe -n MSP430FR5964 -j fast -w password.txt -v -p 0x11111111
* -----/|-------------------------------------------------------------------- *
*     / |__                                                                   *
*    /_   /   MSP Flasher v1.3.19                                             *
*      | /                                                                    *
* -----|/-------------------------------------------------------------------- *
*
* Evaluating triggers...done
* Checking for available FET debuggers:
* Found USB FET @ COM7 <- Selected
* Initializing interface @ COM7...done
* Setting FET speed...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
* Loading file into device...done
* Verifying memory (password.txt)...
# Exit: 10
# ERROR: Could not reset device
* Powering down...done
* Disconnecting from device...done
*
* ----------------------------------------------------------------------------
* Driver      : closed (No error)
* ----------------------------------------------------------------------------
*/

Error disappear when I do not use JTAG password protection:

./MSP430Flasher.exe -n MSP430FR5964 -j fast -w .\without_password.txt -v
* -----/|-------------------------------------------------------------------- *
*     / |__                                                                   *
*    /_   /   MSP Flasher v1.3.19                                             *
*      | /                                                                    *
* -----|/-------------------------------------------------------------------- *
*
* Evaluating triggers...done
* Checking for available FET debuggers:
* Found USB FET @ COM7 <- Selected
* Initializing interface @ COM7...done
* Setting FET speed...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
* Loading file into device...done
* Verifying memory (.\without_password.txt)...done
*
* ----------------------------------------------------------------------------
* Arguments   : -n MSP430FR5964 -j FAST -w .\without_password.txt -v
* ----------------------------------------------------------------------------
* Driver      : loaded
* Dll Version : 31400000
* FwVersion   : 31200000
* Interface   : TIUSB
* HwVersion   : U 3.0
* JTAG Mode   : AUTO
* Device      : MSP430FR5964
* EEM         : Level 5, ClockCntrl 2
* Erase Mode  : ERASE_ALL
* Prog.File   : .\without_password.txt
* Verified    : TRUE
* BSL Unlock  : FALSE
* InfoA Access: FALSE
* VCC OFF
* ----------------------------------------------------------------------------
* Powering down...done
* Disconnecting from device...done
*
* ----------------------------------------------------------------------------
* Driver      : closed (No error)
* ----------------------------------------------------------------------------
*/

My password configuration:

/*
 * jtag_password.c
 *
 */
#include <stdint.h>
/* Code protection feature*/
#pragma RETAIN(JTAG_signatures)
#pragma DATA_SECTION(JTAG_signatures, ".jtagsignature")
const uint16_t JTAG_signatures[] = {0xAAAA, 0x0002};

#pragma RETAIN(JTAG_password)
#pragma DATA_SECTION(JTAG_password, ".jtagpassword")
const uint8_t JTAG_password[] = {0x11, 0x11, 0x11, 0x11 };

 Any ideas? 

  • Hi Mateusz,

    With the JTAG password added, is the code programmed successfully? You can check this by watching whether the programmed chip run well as expected.
  • Hi Collins,

    yes, device is programmed and verified successfully in both cases. 

    Edit:

    When I program device with password set and NO_ERASE option there is no given error:

    MSP430Flasher.exe -n MSP430FR5964 -j fast -w password.txt -p 0x11111111 -e NO_ERASE
    * -----/|-------------------------------------------------------------------- *
    *     / |__                                                                   *
    *    /_   /   MSP Flasher v1.3.19                                             *
    *      | /                                                                    *
    * -----|/-------------------------------------------------------------------- *
    *
    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ COM7 <- Selected
    * Initializing interface @ COM7...done
    * Setting FET speed...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
    * Loading file into device...done
    *
    * ----------------------------------------------------------------------------
    * Arguments   : -n MSP430FR5964 -j FAST -w password.txt -p 0x11111111 -e NO_ERASE
    * ----------------------------------------------------------------------------
    * Driver      : loaded
    * Dll Version : 31400000
    * FwVersion   : 31200000
    * Interface   : TIUSB
    * HwVersion   : U 3.0
    * JTAG Mode   : AUTO
    * Device      : MSP430FR5964
    * EEM         : Level 5, ClockCntrl 2
    * Erase Mode  : NO_ERASE
    * Prog.File   : password.txt
    * Verified    : FALSE
    * BSL Unlock  : FALSE
    * InfoA Access: FALSE
    * VCC OFF
    * ----------------------------------------------------------------------------
    * Powering down...done
    * Disconnecting from device...done
    *
    * ----------------------------------------------------------------------------
    * Driver      : closed (No error)
    * ----------------------------------------------------------------------------
    */


    Also I can read without any error MCU with password set

    MSP430Flasher.exe -n MSP430FR5964 -j fast -r [outE.txt,INFO] -p 0x11111111
    * -----/|-------------------------------------------------------------------- *
    *     / |__                                                                   *
    *    /_   /   MSP Flasher v1.3.19                                             *
    *      | /                                                                    *
    * -----|/-------------------------------------------------------------------- *
    *
    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ COM7 <- Selected
    * Initializing interface @ COM7...done
    * Setting FET speed...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 Info Memory A...done
    * Dumping memory from INFO into outE.txt...done
    *
    * ----------------------------------------------------------------------------
    * Arguments   : -n MSP430FR5964 -j FAST -r [outE.txt,INFO] -p 0x11111111
    * ----------------------------------------------------------------------------
    * Driver      : loaded
    * Dll Version : 31400000
    * FwVersion   : 31200000
    * Interface   : TIUSB
    * HwVersion   : U 3.0
    * JTAG Mode   : AUTO
    * Device      : MSP430FR5964
    * EEM         : Level 5, ClockCntrl 2
    * Read File   : outE.txt (memory segment = INFO)
    * VCC OFF
    * ----------------------------------------------------------------------------
    * Powering down...done
    * Disconnecting from device...done
    *
    * ----------------------------------------------------------------------------
    * Driver      : closed (No error)
    * ----------------------------------------------------------------------------
    */

  • Hello,

    It seems that MSPFlasher has problem a problem with programming with verification secured FRAM devices. Can anyone confirm or deny it?

  • Hi Mateusz,

    The error report happens when the host tries to hold the device via JTAG while the JTAG interface has been locked in the code, so it's normal warning and the code has been successfully programmed.
  • Thank you for explanation. Unfortunately MSPFlasher exits with error code, so my script gets information that there is problem with the device programming. Error code is 10. I can omit this particular error code, but I am not sure, that this error code can occur only fot this one situation. 

  • Hi Mateusz,

    I can understand your concern; this false warning should not appear in this scenario, I will feedback this to the software development team. Thanks!
  • Hi Mateusz,

    I have't got any feedback from you in last days, so I assume your problem has been resolved. If not, just post a reply below (or create a new thread if the thread has locked due to time-out) , thanks a lot!

**Attention** This is a public forum