This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F2132 BSL

Other Parts Discussed in Thread: MSP430F2132, MSP430F2618

I'm trying to communication from MSP430F2618 to MSP430F2132 using Bootstraploader, but I meet some strange problems. First to my configuration:

I use following PIN connection:

MSP430F2618     -     MSP430F2132

P3.4 UCA0TXD    -      P2.2   RXD
P3.5 UCA0RXD   -       P1.1  TXD
P3.6                      -       RST
P3.7                     -        TEST

BSL entry sequence looks so:
- RST and TEST both low
- wait 2ms
- TEST HIGH
- wait 2ms
- TEST LOW

- wait 100ms

- TEST HIGH
- wait 2ms
- RST HIGH
- wait 2ms
- TEST LOW

Here come the first questions. Should I set TEST pin to LOW after BSL is started? How long should the TEST pin held HIGH?

Next I write 0x80 to UCA0TXBUF and get 0x90 in UCA0RXBUF. Everything looks fine, but if I try to execute any command I don't get any response.

E.g. I tried sending "Mass erase" command after synchronization:
0x80, 0x18, 0x04, 0x04, 0xAA, 0xAA, 0x06, 0xA5, 0x7A, 0x1F

But I don't get any answer and flash remains unchanged. Any ideas where to look for a problem?

P.S. Sending bytes to serial I've done so, it should be correct:
   while (!(IFG2&UCA0TXIFG));                // USCI_A0 TX buffer ready?
   UCA0TXBUF = ucByte;

 

  • >Should I set TEST pin to LOW after BSL is started?

    Yes

    > How long should the TEST pin held HIGH?

    In the PC Application I use 10ms times, but 2ms should be ok.

    >but if I try to execute any command I don't get any response.

    This is more difficult, as I don't see anything specifically wrong.  I would look at your bytes on a scope, and double check you are sending them according to the format described in section 2.3 of SLAU265.

  • Thank you for your input! I've found some stupid mistakes in data packet preparation and have corrected them, so that I'm getting correct replies from BSL.

    Could you please help with next question? :)

    slau265 says - "Minimum time delay before sending new characters after characters have been received from the MSP430 BSL: 1.2 ms" and "This (Synchronization) sequence must be done before every command that is sent to the BSL". I don't have to wait 1.2ms after sending "synchronization character"? 1.2ms Only between sending commands?

     

**Attention** This is a public forum