Other Parts Discussed in Thread: MSP-FET
The problem that I'm seeing is that BSL scripter works perfectly on one computer to re-flash a USB HID target running on an MSP430F5510, but fails on the other. The problem computer does fine with using the BSL scripter to target UART based devices, and I'm able to use MSP430Flasher to re-flash JTAG targets. In both cases the same target hardware is used, and the same MSP-FET device is used.
There's more info below on the output from the tool in the cases where it works and the case where it doesn't, as well as a copy of the script I'm feeding BSL-Scripter. Does anyone know what the source of this problem might be or what steps might be taken to narrow down the cause?
The output from BSL-scripter, in the failure case is:
---------------------------------------------------------
BSL Scripter 3.2.0
PC software for BSL programming
2017-Jan-25 13:40:51
---------------------------------------------------------
Input file script is : D:/flashFiles/ScriptFile.txt
////////////////////////////////////
//Write RAM USB BSL to the device
////////////////////////////////////
MODE 5xx USB
//gives wrong password to do mass erase in the memory
RX_PASSWORD badPass.txt
Read Txt File : D:\flashFiles\badPass.txt
[ERROR_MESSAGE]BSL Password is error!
RX_PASSWORD defaultPass.txt
Read Txt File : D:\flashFiles\defaultPass.txt
BSL Password is correct!
DELAY 1000
Delay 1000 ms
RX_DATA_BLOCK_FAST RAM_BSL_USB.txt
Read Txt File : D:\flashFiles\RAM_BSL_USB.txt
Time elapsed of writing 3602 bytes : 0.07877 seconds
Speed of writing data :44.66(kB/s)
SET_PC 0x2504
[ERROR_MESSAGE]Data is not completely transmitted!
On another computer (new HP Spectre laptop) it works fine, and I get this output:
---------------------------------------------------------
BSL Scripter 3.2.0
PC software for BSL programming
2017-Jan-25 19:38:52
---------------------------------------------------------
Input file script is : E:/flashFiles/ScriptFile.txt
////////////////////////////////////
//Write RAM USB BSL to the device
////////////////////////////////////
MODE 5xx USB
//gives wrong password to do mass erase in the memory
RX_PASSWORD badPass.txt
Read Txt File : E:\flashFiles\badPass.txt
[ERROR_MESSAGE]BSL Password is error!
RX_PASSWORD defaultPass.txt
Read Txt File : E:\flashFiles\defaultPass.txt
BSL Password is correct!
DELAY 1000
Delay 1000 ms
RX_DATA_BLOCK_FAST RAM_BSL_USB.txt
Read Txt File : E:\flashFiles\RAM_BSL_USB.txt
Time elapsed of writing 3602 bytes : 0.07904 seconds
Speed of writing data :44.5(kB/s)
SET_PC 0x2504
DELAY 3000
Delay 3000 ms
////////////////////////////////////
//Start the RAM USB BSL application to download the app
////////////////////////////////////
MODE 5xx USB
RX_PASSWORD .\defaultPass.txt
Read Txt File : E:\flashFiles\defaultPass.txt
BSL Password is correct!
RX_DATA_BLOCK .\Firmware.txt
Read Txt File : E:\flashFiles\Firmware.txt
Time elapsed of writing 35213 bytes : 2.29 seconds
Speed of writing data :15.02(kB/s)
DELAY 500
Delay 500 ms
RX_DATA_BLOCK RESET.txt
Read Txt File : E:\flashFiles\RESET.txt
Time elapsed of writing 35218 bytes : 0.009502 seconds
Speed of writing data :3620(kB/s)
SET_PC 0x2504
The script file I"m using is:
////////////////////////////////////
//Write RAM USB BSL to the device
////////////////////////////////////
MODE 5xx USB
//gives wrong password to do mass erase in the memory
RX_PASSWORD badPass.txt
RX_PASSWORD defaultPass.txt
DELAY 1000
RX_DATA_BLOCK_FAST RAM_BSL_USB.txt
SET_PC 0x2504
DELAY 3000
////////////////////////////////////
//Start the RAM USB BSL application to download the app
////////////////////////////////////
MODE 5xx USB
RX_PASSWORD .\defaultPass.txt
RX_DATA_BLOCK .\Firmware.txt
DELAY 500
RX_DATA_BLOCK RESET.txt
SET_PC 0x2504