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.
We are trying to enter BSL mode using following code in MSP application
#include <msp430.h>
int main(void)
{
volatile unsigned int i;
WDTCTL = WDTPW|WDTHOLD;
_disable_interrupts();
((void (*)())0x1000)();
}
Then we open MSP430 Application UART port in realterm (RealTerm: Serial/TCP Terminal download | SourceForge.net )with following settings
Baud 9600 even parity,8 data bits,1 stop bit, HW flow control none
We had send BSL version check command as listed in user's guide MSP430 Flash Devices Bootloader (BSL)
3.7.4 Example Sequences for UART BSL
Get BSL version
Host: 80 01 00 19 E8 62
BSL: 00 80 05 00 3A 00 01 01 01 6C 4F
Result got from BSL is not the expected one which is 0x05 0x92 0x00 0x00 0x04 0x80 0xFE 0xED . What could be the cause of this?
Hi
The data in your realterm is not the protocol of BSL version.
You need to get the wave form the communication.
Like the example BSL: 00 80 05 00 3A 00 01 01 01 6C 4F
first 00 is the ACK signal, in your screen shot there is no ACK
80 is the header, 05 00 indicates the data length is 5. and 3A is the CMD that this is a BSL version data. Then 4 bytes version. final 2 bytes is the CRC.
You can see the F510 default version in the user guide
We are trying to enter BSL mode from an external way by creating BSL entry sequence. We are able to enter into BSL mode. Then we are trying example sequences for uart BSL.
Changing baud rate to 9600
Host: 80 02 00 52 02 90 55
Expected BSL: 00
Our output : 00
Get buffer size
Host: 80 01 00 1A 8B 52
Expected BSL: 00 80 03 00 3A 04 01 1D 12
Our Output : 00 80 02 00 3B 07 87 B4
Get BSL version
Host: 80 01 00 19 E8 62
Our Output : 00 80 02 00 3B 04 E4 84
Is it correct or not?
**Attention** This is a public forum