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.

BSL scripter doensn't work using launchpad MSP-EXP430G2

Other Parts Discussed in Thread: CC430F6137, MSP430G2553, MSP430G2231

I am using CC430F6137, and bought lanuchPad MSP-EXP430G2

I flashed fimware (LPAD_BSL_INTERFACE.txt in slaa535a.zip)into the M430G2553 using MSP430Flasher

and execute test.bat (slaa535a\LPAD_BSL_INTERFACE\TestScripts\CC430F6137)

but didn't work. 

I checked BSL entry sequence using oscilloscope. it's correct.

and find out TX data was not correct. I think it is the reason why bsl scripter doesn't work

for example, change baud rate 80 02 00 52 02 90 55 (when test.bat was executed)

actual data was 80 02 00 49 13 0e aa e5 (by using USB-to-serial cable)

script was:

MODE 5xx COM17
VERBOSE
CHANGE_BAUD_RATE 9600
TX_BSL_VERSION
MASS_ERASE
RX_PASSWORD
RX_DATA_BLOCK BLINK_CC430F6137.txt
RX_DATA_BLOCK BOR.txt

actual TX data was:

80 02 00 49 13 0c aa f9
80 01 00 32 43 89 ff
80 01 00 2a 23 1b fd
80 21 01 8a f2 fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 79 e6
80 f4 00 41 03 08 1c 40 80 01 02 03 08 2b 62 d0 70 c2 09 14 5a c6 50 98 d8 10 62 84 89 13 14 55 66 ec 01 43 c6 8d 1b 39 eb c8 e8 0c b2 c4 11 23 24 95 33 76 11 c5 29 2a 2b 58 6b e4 d1 19 86 cc 9b 33 d1 ab 64 74 86 96 a4 6c c6 d4 e6 f6 04 5a 24 48 68 51 45 46 47 21 4a 4d da 09 d3 93 4e 4f 50 45 93 9b 41 ad c9 a5 35 6b 96 da 5b 5c eb f3 fb 01 53 36 ec 63 91 2b 32 3a 43 4b 4e d3 6d 9b ed 6e 6f e0 8b 92 9a 47 aa b3 bb c2 ca d3 db e2 eb f2 fa 03 2f 28 50 70 61 85 86 87 43 95 9c dc 51 e3 8d 8e 1e 90 22 92 93 51 57 ca ea 0e 5e 4a 6a 8e aa ce ee 0a aa 74 d1 a3 91 a5 4c 9d a8 a9 a9 ad ac b5 ae af 60 b1 64 cd b4 6b b6 b7 e1 e5 ba bb f1 bd f9 fd c0 82 c2 c3 91 c5 19 1d c8 c9 94 2d cc 9a ce cf a1 d1 49 4d d4 aa d6 d7 b0 65 da db 71 dd bc 7d e0 e1 89 8d e4 ca e6 e7 d0 a5 ea eb d8 ed b9 7b 35 92 ff
80 06 01 82 0c 59 30 80 a9 81 5d a8

I didn't change any hardware(just buying) and software(supported). How the data can be broken?

  • Hi Sungae,

    Sungae Kim said:

    I flashed fimware (LPAD_BSL_INTERFACE.txt in slaa535a.zip)into the M430G2553 using MSP430Flasher

    the binary file is compiled for MSP430G2231 which is delivered with Launchpad v.1.4 and prior. I just realized that starting Launchpad v1.5, the kit is delivered with MSP430G2553 instead. 

    My suggestion is to download IAR kickstart: http://www.ti.com/tool/iar-kickstart and recompile the source code given in the app note SLAA535A for MSP430G2553. You might need to change some of the register names (e.g. for Timer_A) if it is not available for the MSP430G2553.

    Hope this helps, otherwise please let me know.

  • Hi Sungae,

    here is a version of the code which can be complied for MSP430G2553 made by one of my colleague:

    3323.lpad_bsl_int_G2553.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /* --COPYRIGHT--,BSD
    * Copyright (c) 2012, Texas Instruments Incorporated
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    * * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I have tested it by myself on Launchpad v1.5 with MSP430G2553, and it should work.

  • I flashed into MSP430G2553 using files you give

    but didn't work.... it is the same as before

  • Hi Sungae,

    do you use the lpad_bsl_int_g2553.c i gave you above? you must compile it with either CCS/IAR (don't forget to set/change the target device as MSP430G2553).

    Another question, are you using the BSL_Scripter.exe from the SLAA535A or from SLAU319? The one from SLAU319 has a bug which prevent it works with COM PORT > 9. The one in SLAA535 doesn't have this bug, but you might get error that "MSCVCR100D.dll is missing", and the solution is to do as suggested here:

    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/the-program-cant-start-becuase-msvcr100dll-is/5c9d301a-2191-4edb-916e-5e4958558090

  • Yes, I compiled and target device option was MSP430G2553.

    and COM PORT was 17 but I used from SLAA535A.zip

    I used IAR workbench kickstart, Linker option, Extra Output format msp430-txt.

    How can I check that firmware is correct ?

    my compile text file : 

    5732.lpad_bsl_interface.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    @C000
    01 01 01
    @C004
    31 40 00 04 3C 40 04 02 3D 40 0F 00 B0 12 B6 C4
    3C 40 00 02 3D 40 00 C0 3E 40 03 00 B0 12 C8 C4
    B0 12 2C C0 B0 12 CC C4 B2 40 80 5A 20 01 F2 D0
    20 00 53 00 B0 12 60 C1 C2 43 56 00 F2 40 8E 00
    57 00 F2 40 60 00 56 00 F2 F0 FC 00 53 00 E2 C3
    02 00 00 3C 3F 40 1F 00 3F 53 FE 2F E2 B3 02 00
    F3 2F F2 D0 82 00 22 00 F2 D0 82 00 21 00 F2 F0
    BB 00 22 00 F2 D0 44 00 27 00 F2 D0 44 00 21 00
    F2 D0 31 00 22 00 F2 F0 CE 00 21 00 F2 C2 22 00
    F2 D2 27 00 F2 D2 21 00 3C 40 E8 03 B0 12 A6 C3
    F2 B2 20 00 18 2C 3F 40 9E 86 03 43 1E 43 3F 53
    3E 63 FD 2F F2 B2 20 00 0E 2C C2 43 00 02 D2 D3
    21 00 3C 40 F4 01 B0 12 A6 C3 D2 C3 21 00 3C 40
    F4 01 B0 12 A6 C3 D2 D3 21 00 3F 40 41 00 3F 53
    FE 2F F2 E0 21 00 21 00 3F 40 41 00 3F 53 FE 2F
    F2 E0 21 00 21 00 3F 40 0F 00 3F 53 FE 2F F2 E0
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Sungae Kim said:

    Yes, I compiled and target device option was MSP430G2553.

    and COM PORT was 17 but I used from SLAA535A.zip

    I used IAR workbench kickstart, Linker option, Extra Output format msp430-txt.

    If you are using IAR, you don't really need to first generate the TI-TXT file and download it separately, you can just push the debug button to download the code into the MSP430G2553 on the launchpad.

    Sungae Kim said:

    How can I check that firmware is correct ?

    When you start the G2553 on the Launchpad (or after pushing the reset button), what does it do? How are the LEDs? Are both turned on steadily, or blinking?

  • I've just tried everything  I can do ;;;(directly download, using MSP430Flasher), 

    and Both turned on steadily.

  • ok,

    one more try, if you unplug the launchpad USB cable, and replug it (or maybe just reset it, but sometime after debugging/programming from IDE/software programmer, the RST line is hold high somehow and reset button doesn't really work), do you see red LED blink once before both LEDs turned on?

    If yes, this might be the problem. This basically means that the G2553 will not add the parity bit to the data sent by PC, while the CC430 expects this. You should check the connection at the push button and make sure that it is pulled high after reset (actually the code should enable the internal pull-up resistor also at P1.3).

  • Targetboard has a problem.

    I solved,  Thank you!!!

**Attention** This is a public forum