Programming mote (msp430) using TinyOS and stumbled in the error

Thread Starter

Strappato

Joined Aug 5, 2021
1
Hi guys!
I'm programming a msp430 mote using the command "make telosb reinstall bsl,/dev/ttyUSB0", unfortunately the following message appears:

andrea@andrea-VirtualBox:/opt/tinyos-main/apps/Blink$ make telosb reinstall bsl,/dev/ttyUSB0
cp build/telosb/main.ihex build/telosb/main.ihex.out
installing telosb binary using bsl
tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Mass Erase...
MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Mass Erase...
Traceback (most recent call last):
File "/usr/bin/tos-bsl", line 1918, in <module>
main(0);
File "/usr/bin/tos-bsl", line 1833, in main
for f in toinit: f()
File "/usr/bin/tos-bsl", line 1098, in actionMassErase
0xa506) #Required setting for mass erase!
File "/usr/bin/tos-bsl", line 758, in bslTxRx
rxFrame = self.comTxRx(cmd, dataOut, len(dataOut)) #Send frame
File "/usr/bin/tos-bsl", line 440, in comTxRx
rxHeader, rxNum = self.comRxHeader() #receive header
File "/usr/bin/tos-bsl", line 346, in comRxHeader
if not hdr: raise BSLException("Timeout")
__main__.BSLException: Timeout
/opt/tinyos-main/support/make/msp/bsl.extra:45: recipe for target 'program' failed
make: *** [program] Error 1

I've noticed in the terminal some ambiguous lines:
-"MSP430 Bootstrap Loader Version: 1.39-goodfet-8
Mass Erase..." this is repeated twice

- if not hdr: raise BSLException("Timeout")
__main__.BSLException: Timeout

-/opt/tinyos-main/support/make/msp/bsl.extra:45: recipe for target 'program' failed
make: *** [program] Error 1

I can compile the code (using make telosb). If I try to load the compiled code in the mote (as showed in the terminal), the ambiguous lines return and the mote is not programmed. How can I solve this issue?
 
Top