I just noticed as I was debugging the issues I was having that enabling the DEBUG flag in goodfet.bsl makes it fail in something else than I was debugging.
My command line is: board=facedancer21 goodfet.bsl --speed=38400 -p goodfet.hex
I'm on OSX 10.9.5 with Python 2.7.11 and pyserial-3.0.1
When unsetting the baudrate my issue disappeared, so I'm assuming it's caused by pyserial, although I haven't investigated it further.
Without DEBUG:
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 2.13 (Device ID: f26f)
Changing baudrate to 38400 ...
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Invoking BSL...
Transmit default password ...
Traceback (most recent call last):
File "/usr/local/bin/goodfet.bsl", line 1987, in <module>
main(0);
File "/usr/local/bin/goodfet.bsl", line 1905, in main
speed=speed,
File "/usr/local/bin/goodfet.bsl", line 1166, in actionStartBSL
self.txPasswd(self.passwd) #transmit password
File "/usr/local/bin/goodfet.bsl", line 1136, in txPasswd
wait=wait) #if wait is 1, try to sync forever
File "/usr/local/bin/goodfet.bsl", line 801, in bslTxRx
rxFrame = self.comTxRx(cmd, dataOut, len(dataOut)) #Send frame
File "/usr/local/bin/goodfet.bsl", line 480, in comTxRx
rxHeader, rxNum = self.comRxHeader() #receive header
File "/usr/local/bin/goodfet.bsl", line 386, in comRxHeader
if not hdr: raise BSLException("Timeout")
__main__.BSLException: Timeout
With DEBUG:
Debug level set to 1
Python version: 2.7.11 (default, Dec 5 2015, 23:51:51)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
using serial port '/dev/tty.usbserial-A104O89Z'
Actions ...
Invoking BSL...
Transmit default password ...
Autodetect successful: f26f -> F2x family
Current bootstrap loader version: 2.13 (Device ID: f26f)
Current bootstrap loader version: 0x0213
Changing baudrate to 38400 ...
Traceback (most recent call last):
File "/usr/local/bin/goodfet.bsl", line 1976, in <module>
main(1)
File "/usr/local/bin/goodfet.bsl", line 1905, in main
speed=speed,
File "/usr/local/bin/goodfet.bsl", line 1256, in actionStartBSL
self.actionChangeBaudrate(speed) #change baudrate
File "/usr/local/bin/goodfet.bsl", line 1392, in actionChangeBaudrate
self.serialport.setBaudrate(baudrate)
AttributeError: 'Serial' object has no attribute 'setBaudrate'
I just noticed as I was debugging the issues I was having that enabling the
DEBUGflag ingoodfet.bslmakes it fail in something else than I was debugging.My command line is:
board=facedancer21 goodfet.bsl --speed=38400 -p goodfet.hexI'm on OSX 10.9.5 with Python 2.7.11 and pyserial-3.0.1
When unsetting the baudrate my issue disappeared, so I'm assuming it's caused by pyserial, although I haven't investigated it further.
Without DEBUG:
With DEBUG: