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.

UART BSL Bootloader for MSP430F5529 - HOW TO

Other Parts Discussed in Thread: MSP430F5529, MSP430F5418

Hi everyone.


At first, I am pretty angry about this stuff and all Texas Instruments documentation about it. Or documentation is OK and I am just stupid.
I did not fing ANY nice HOW TO app note. I need only step by step manual.

1. I have an application with MSP430F5529

2. I need to program it via UART BSL. Sounds simple? Not even close..

I found this on ti.com page:

http://www.ti.com/tool/mspbsl?keyMatch=BSL&tisearch=Search-EN-Everything#1

So for me is important (I think) BSL-SCRIPTER and CUSTOM-BSL430.

3. In CUSTOM-BSL43 folder is this file:

5xx_6xx_Released_BSL_Images\MSP430F552x_550x_Family\UART BSL\BSL.00.07.05.04.txt


Logically it could be a image of bootloader file which I have to write into MSP430F5529, right? So I tried to download it into MSP430F5529 using FET-Pro430 and MSP-FET430UIF programmer. When I hit "WRITE FLASH" it yells on me "Code size exceeds FLASH memory". WHAT???

4. OK, I tried to build source code in 5xx_6xx_Example_BSL_Source of folder above. I changed device type to MSP430F5529 (original is MSP430F5418 ). Compilation is OK, but I get an error while download this code to MSP430F5529 from CCS. That error says:

Load program Error

File D:/blablabla.out: A data verification error occured, file load failed.

So I cannot get UART bootloader into MSP430F5529 memory. Why and how? All right - I know why. It must be enabled in properties -> debug -> MSP properties -> select Erase main, information and protected information memory, and select Allow Read/write/erase BSL memory

HW question:

I have connected UART lines to P1.1 (transmitt pin on MSP) and P1.2 (receive pin on MSP). On the ports !RST and TEST I have pushbuttons to entry bootloader sequence. In SLAU319 is written the entry sequence. MSP430F5529 using shared JTAG pins. So I push RESET button (signal goes to low) -> push TEST button (signal goes high) -> release RESET button and released TEST button.

Config file for BSL-SCRIPTER:

MODE 5xx UART 9600 COM29
DELAY 1000
MASS_ERASE
RX_DATA_BLOCK LED.txt

In LED.txt is compiled file for blinking of LED. I run this program like this:

bsl-scripter-windows.exe config.txt

I really DO NOT want to spend a hours of testing, compiling and debugging stuffs what have to work immedietaly! I DO NOT have enough time for this. ANY help is really appreciated! Thank you.

  • I also tried to compile to EXAMPLE code in folder 5xx_6xx_Example_BSL_Source. This folder is in the package I mentioned above.

    "../lnk_msp430f5418a.cmd", line 167: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".cinit" size 0x12 .  Available memory ranges:

    So I think that bootloader code is bigger than available 2KB memory for BSL. This is an example project and it does not work.......

    Could you give me right .cmd file to solve my problem?

    Thanks

  • BSL area is protected, and before erasing / writing, it must be unlocked first. Don't know about size, but UART BSL should fit to 2 KByte for sure.

  • All right, but this message I get right after compilation.. (if you reply to my last post) So it cannot be solved by enable of write/erase bootloader section.

**Attention** This is a public forum