Hi all,
An update: Since my keyspan adapter was an unknown, I decided to monitor
the RS232 lines with a terminal emulator (Seyon) to see what
actually was being transmitted. I set Seyon to 9600,8,E,1. During the
handshake phase, bsl.py was definetly sending 0x80 and received 0x90. That
is what should happen. When the 1st data packet got sent ( 80 18 04
04 00 ff 06 a5 7d b9), that is exactly what was recieved by the
MSP430,
however what I got back was 0xa0 followed by 0x00(instead of ACK 0x90).
It seems my RS232 interface is ok, why then is the MSP430 thinking it
does not have the correct data? Even the check-sum is correct.
I hope someone can answer this, I'm getting tired of talking to myself
on this forum ;-)
Cheers,
Bernie
Bernard Mentink wrote:
Hi All,
I am getting the following error while trying a : bsl.py -e -DDDD
command.
------------------------------------------------------------------------
MSP430 Bootstrap Loader Version: 1.26
Use -h for help
debug level set to 4
python version: 2.2.2 (#1, Dec 13 2002, 07:18:38)
[GCC 3.2]
file: None* comInit()
using serial port '/dev/ttyUSB0'
Preparing device ...
Mass Erase...
* bslReset(invokeBSL=1)
* bslTxRx()
* bslSync(wait=0)
bslSync() OK
* comTxRx()
tx 80 tx 18 tx 04 tx 04 tx 00 tx ff tx 06 tx a5
tx 7d tx b9 comTxRx() transmit OK
* comRxHeader()
* comRxHeader() OK
comTxRx() rxHeader=0xa0, rxNum=0, seqNo=0, reqNo=0* comTxRx() DATA_NAK
Traceback (most recent call last):
File "/usr/local/msp430/bin/bsl.py", line 1234, in ?
main()
File "/usr/local/msp430/bin/bsl.py", line 1180, in main
for f in toinit: f()
File "/usr/local/msp430/bin/bsl.py", line 683, in actionMassErase
0xa506) #Required setting for mass erase!
File "/usr/local/msp430/bin/bsl.py", line 395, in bslTxRx
rxFrame = self.comTxRx(cmd, dataOut, len(dataOut)) #Send frame
File "/usr/local/msp430/bin/bsl.py", line 273, in comTxRx
raise BSLException(self.ERR_RX_NAK)
__main__.BSLException: NAK received (wrong password?)
-------------------------
It seems to have done the bootstrap process and the handshaking, but I
am getting a NAK in the comTxRx() routine.
I'm not sure what to do next. Can anyone suggest some further
debugging to solve this.
(The hardware is ok, since have used it with window bsl tools, and
also used bsl.py successfully on MAC OS X, I am currently running
under Gentoo Linux and am trying to achieve the same ).
Many Thanks.
Bernard Mentink
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users