dlbeer/mspdebug

Execution stops on "Performing initial mass erase"

SaumyaRaj188 opened this issue · 0 comments

I am trying to upload code to MSP430-Lunchbox (MSP430G2553 which used CH430G as a USB to Serial interface.)
the board shows that some communication happened but stops at this stage

sudo mspdebug flash-bsl -d /dev/ttyUSB0 "prog firmware.hex"
MSPDebug version 0.25 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2017 Daniel Beer dlbeer@gmail.com
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.15.0.1 Copyright (C) 2013 TI, Inc.

Performing initial mass erase...
flash_bsl: serial read failed: Connection timed out
flash_bsl_erase: failed to send erase command
flash_bsl_unlock: warning: erase failed

I also tried:
sudo mspdebug rom-bsl -d /dev/ttyUSB0 "prog firmware.txt"
MSPDebug version 0.25 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2017 Daniel Beer dlbeer@gmail.com
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.15.0.1 Copyright (C) 2013 TI, Inc.

rom_bsl: failed to receive reply: Connection timed out
rom_bsl: failed to receive reply: Connection timed out
rom_bsl: sync failed
rom_bsl: failed on command 0x1e (addr = 0x0000, len = 0x0000)
warning: rom_bsl: failed to read version
Performing mass erase...
rom_bsl: failed to receive reply: Connection timed out
rom_bsl: failed to receive reply: Connection timed out
rom_bsl: sync failed
rom_bsl: failed on command 0x18 (addr = 0xfffe, len = 0xa506)
rom_bsl: initial mass erase failed

can't seem to understand what the issue is here, i am using the latest mspdebug directly pulled from the master branch