The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.
BSL, Changing the Baud Rate - richas - Sep 4 17:28:22 2009
I have all the functions of the BSL working except for changing the baud rate.
MSP430F2370
I am sending this packet to change to 19200 Baud:
0x80
0x20
0x04
0x04
0x00
0x8B
0x01
0x00
0x7A
0x50
Nothing but NACK is returned.
Anyone successfully changed the baud rate?
Thanks
Rich
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: BSL, Changing the Baud Rate - dboydinga - Sep 4 19:28:18 2009
--- In m...@yahoogroups.com, "richas"
wrote:
>
> I have all the functions of the BSL working except for changing the baud rate.
>
> MSP430F2370
>
> I am sending this packet to change to 19200 Baud:
>
> 0x80
> 0x20
> 0x04
> 0x04
> 0x00
> 0x8B
> 0x01
> 0x00
> 0x7A
> 0x50
>
> Nothing but NACK is returned.
>
> Anyone successfully changed the baud rate?
>
> Thanks
>
> Rich
>
I only have working values for the F149 series at hand, but I know my code works. Your
packet looks correctly formed an checksum looks correct for the packet; but your value for
D3 (0x01) seems wrong per my working code. I have 0x01 for 9600, 0x02 for 19.2K, and 0x03
for 38.4K. However, my own code is at odds with the documentation I had, which used D3
values of 0, 1, and 2.
Consider trying a D3 of 2 (with the checksum fixed up) and see what happens? (Best guess
on a Friday night before a holiday weekend.) Good luck!
Dave
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )Re: BSL, Changing the Baud Rate - old_cow_yellow - Sep 4 20:28:09 2009
At what baudrate are you sending these bytes? At what point do you change your baudrate to
19200?
I think you need to send them at 9600 and wait for ACK or NAK at 9600.
If you received ACK (at 9600) you should change to 19200, wait for ~10msec, and send SYNC
(at 19200). Instead, if you received NAK (at 9600), do not change baudrate.
I think if D3 is wrong, the BSL will still seem to work. But the Flash clock will be set
incorrectly and your Flash erase/write timing will be out of spec but still appear to
work.
The other thing is, I do not know if this function works or not for F2370.
--- In m...@yahoogroups.com, "dboydinga"
wrote:
>
> --- In m...@yahoogroups.com, "richas" wrote:
> >
> > I have all the functions of the BSL working except for changing the baud rate.
> >
> > MSP430F2370
> >
> > I am sending this packet to change to 19200 Baud:
> >
> > 0x80
> > 0x20
> > 0x04
> > 0x04
> > 0x00
> > 0x8B
> > 0x01
> > 0x00
> > 0x7A
> > 0x50
> >
> > Nothing but NACK is returned.
> >
> > Anyone successfully changed the baud rate?
> >
> > Thanks
> >
> > Rich
> >
> I only have working values for the F149 series at hand, but I know my code works. Your
packet looks correctly formed an checksum looks correct for the packet; but your value for
D3 (0x01) seems wrong per my working code. I have 0x01 for 9600, 0x02 for 19.2K, and 0x03
for 38.4K. However, my own code is at odds with the documentation I had, which used D3
values of 0, 1, and 2.
>
> Consider trying a D3 of 2 (with the checksum fixed up) and see what happens? (Best
guess on a Friday night before a holiday weekend.) Good luck!
>
> Dave
>
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )