Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution stops on "Performing initial mass erase" #130

Open
SaumyaRaj188 opened this issue Aug 9, 2024 · 0 comments
Open

Execution stops on "Performing initial mass erase" #130

SaumyaRaj188 opened this issue Aug 9, 2024 · 0 comments

Comments

@SaumyaRaj188
Copy link

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 [email protected]
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 [email protected]
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant