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.

Unable to use MSP-FET as BSL tool for programming MSP-EXP430FR5739

Other Parts Discussed in Thread: MSP-FET, MSP-EXP430FR5739, MSPBSL

We are unable to use MSP-FET as BSL tool for programming MSP-EXP430FR5739 board. We have used BSL-scripter for windows. We are able to use P2.0 and P2.1 over application UART of MSP-FET while simultaneously programming the MSP-EXP430FR5739 using the same MSP-FET, hence we assume that TST, RST, BSL_RX, BSL_TX connections are correct. Hence we expect that the problem is only in the script side. The script we have used is,

LOG
MODE FRxx UART 9600 COM4
VERBOSE
TX_BSL_VERSION

DELAY 2000
RX_PASSWORD pass32_default.txt
RX_DATA_BLOCK blinkLED_FR5739.txt
CRC_CHECK 0x4400 0x0020
SET_PC 0xC200

we have also tried with "MODE 5xx UART 9600 COM4" instead of  "MODE FRxx UART 9600 COM4" command.

Hereby attaching the .txt file generated while try to execute the script.

---------------------------------------------------------
BSL Scripter 3.1.0.0
PC software for BSL programming
2016-Aug-03 16:19:10
---------------------------------------------------------
Input file script is : C:/Users/user/Downloads/MSPBSL_Scripter_win/BSL_Scripter_Windows/bsl-scripter-windows/script_FRxx_uart.txt
MODE FRxx UART 9600 COM4
VERBOSE
TX_BSL_VERSION
[19] 
 
//gives wrong password to do mass erase
//RX_PASSWORD pass32_wrong.txt
//
//add delay after giving wrong password
//because the device does not give
//any response after wrong password applied
//
DELAY 2000
RX_PASSWORD pass32_default.txt
Read Txt File  : C:/Users/user/Downloads/MSPBSL_Scripter_win/BSL_Scripter_Windows/bsl-scripter-windows/pass32_default.txt
[11] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] 
[ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] 
[ff] 
 
RX_DATA_BLOCK blinkLED_FR5739.txt
Read Txt File  : C:/Users/user/Downloads/MSPBSL_Scripter_win/BSL_Scripter_Windows/bsl-scripter-windows/blinkLED_FR5739.txt
[10] [00] [c2] [00] [5a] [14] [21] [82] [c8] [0c] [15] [48] [02] [00] [07] [43] 
[4d] [3c] [cc] [07] [3d] [40] [0c] [00] [b0] [13] [ca] [c3] [cf] [08] [0f] [5c] 
[1e] [4f] [0c] [00] [1d] [4f] [0e] [00] [c6] [08] [06] [5c] [26] [52] [2a] [46] 
[1f] [46] [02] [00] [0c] [58] [19] [4c] [08] [00] [1b] [4c] [0a] [00] [0d] [93] 
[1b] [20] [0e] [93] [19] [20] [3e] [40] [00] [00] [3e] [90] [00] [00] [2d] [24] 
[1a] [53] [0f] [63] [1e] [46] [02] [00] [0f] [18] [4e] [5e] [00] [18] [6e] [d6] 
[6e] [4e] [4e] [4e] [5e] [06] [00] [18] [56] [4e] [00] [00] [cc] [0a] [cd] [0f] 
[ce] [09] [cf] [0b] [46] [13] [17] [3c] [0c] [43] [0c] [93] [0b] [20] [0f] [93] 
[09] [20] [0c] [93] [07] [20] [0b] [93] [05] [20] [cc] [09] [cd] [0a] [b0] [13] 
[e2] [c3] [09] [3c] [81] [4e] [00] [00] [81] [4d] [02] [00] [cc] [09] [cd] [0b] 
[ce] [0a] [b0] [13] [48] [c3] [15] [48] [02] [00] [17] [53] [07] [95] [b1] [2b] 
[21] [52] [55] [16] [10] [01] [3a] [14] [3f] [40] [00] [00] [3f] [90] [00] [00] 
[04] [24] [3c] [40] [00] [00] [b0] [13] [00] [c2] [19] [42] [5c] [01] [b2] [40] 
[80] [5a] [5c] [01] [3f] [40] [00] [00] [3f] [90] [00] [00] [21] [24] [3f] [40] 
[00] [00] [3f] [90] [00] [00] [1c] [24] [3a] [40] [00] [00] [3a] [80] [00] [00] 
[5a] [09] [38] [40] 
[10] [f0] [c2] [00] [00] [00] [3c] [48] [3d] [48] [3e] [48] [3f] [48] [c7] [0c] 
[cb] [0d] [1c] [53] [0d] [63] [0f] [18] [4b] [5b] [00] [18] [4b] [d7] [6b] [4b] 
[4b] [4b] [5b] [06] [00] [18] [5b] [4b] [00] [00] [4b] [13] [1a] [83] [eb] [23] 
[79] [c2] [39] [d0] [08] [5a] [82] [49] [5c] [01] [b0] [13] [06] [c4] [3f] [40] 
[00] [00] [3f] [90] [00] [00] [08] [24] [3a] [40] [00] [00] [02] [3c] [6a] [13] 
[2a] [52] [3a] [90] [00] [00] [fb] [23] [37] [16] [10] [01] [0a] [14] [1a] [41] 
[08] [00] [1b] [41] [0a] [00] [0f] [18] [4d] [5d] [00] [18] [4d] [dc] [0f] [18] 
[4f] [5f] [00] [18] [4f] [de] [0b] [93] [02] [20] [0a] [93] [0d] [24] [0c] [43] 
[0e] [43] [ad] [00] [01] [00] [fd] [4f] [ff] [ff] [1c] [53] [0e] [63] [0e] [9b] 
[f8] [2b] [02] [20] [0c] [9a] [f5] [2b] [0a] [16] [10] [01] [b2] [40] [80] [5a] 
[5c] [01] [f2] [d0] [20] [00] [24] [02] [f2] [d0] [20] [00] [22] [02] [f2] [e0] 
[20] [00] [22] [02] [0d] [14] [3d] [40] [32] [82] [1d] [83] [fe] [23] [0d] [16] 
[f6] [3f] [03] [43] [31] [40] [00] [20] [b0] [13] [02] [c4] [0c] [93] [02] [24] 
[b0] [13] [b2] [c2] [0c] [43] [b0] [13] [88] [c3] [b0] [13] [fc] [c3] [02] [12] 
[32] [c2] [03] [43] [82] [4c] [c0] [04] [82] [4d] [c8] [04] [1c] [42] [ca] [04] 
[32] [41] [03] [43] 
[10] [e0] [c3] [00] [10] [01] [cf] [0c] [0e] [93] [05] [24] [1f] [53] [ff] [4d] 
[ff] [ff] [1e] [83] [fb] [23] [10] [01] [32] [d0] [10] [00] [fd] [3f] [03] [43] 
[03] [43] [ff] [3f] [03] [43] [1c] [43] [10] [01] [10] [01] 
[10] [80] [ff] [00] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] 
[ff] [ff] [ff] [ff] 
[10] [ce] [ff] [00] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] 
[f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] 
[f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] [f4] [c3] 
[f4] [c3] [f4] [c3] [b0] [c3] 
Time elapsed of writing 586 bytes : 25.4 seconds
Speed of writing data :0.02253(kB/s)
 
CRC_CHECK 0x4400 0x0020
[16] [00] [44] [00] [20] [00] 
 
SET_PC 0xC200
[17] [00] [c2] [00] 
Set PC is sent.
  • NIrmal S,
    We are looking into this and will be back with you shortly.
  • Hello Nirmal,

    Please make sure to review the FRAM BSL guide: 

    http://www.ti.com/lit/slaa550

    the following E2E post will help in double checking your HW connections as well: 

    BSL connections with the MSP-FET - MSP low-power microcontroller forum - MSP low-power microcontrollers...

    e2e.ti.com
    Other Parts Discussed in Thread: MSP430F5342 , MSP-FET The MSP-FET page claims it supports "MSP BootStrapLoader (BSL) interface," however the various documents

    As far as your script goes, I am not seeing anything glaring at first glance that could be wrong. Could you post your Log File to see if it is giving an error?

  • Hi Jace,

    Thank you for your attention. Here by attaching the log file generated while try to upload.

    script_FRxx_uart_2016Aug05_105428.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    ---------------------------------------------------------
    BSL Scripter 3.1.0.0
    PC software for BSL programming
    2016-Aug-05 10:54:28
    ---------------------------------------------------------
    Input file script is : C:/Users/user/Downloads/MSPBSL_Scripter_win/BSL_Scripter_Windows/bsl-scripter-windows/script_FRxx_uart.txt
    MODE FRxx UART 9600 COM4
    VERBOSE
    TX_BSL_VERSION
    [19]
    //gives wrong password to do mass erase
    //RX_PASSWORD pass32_wrong.txt
    //
    //add delay after giving wrong password
    //because the device does not give
    //any response after wrong password applied
    //
    DELAY 2000
    RX_PASSWORD pass32_default.txt
    Read Txt File : C:/Users/user/Downloads/MSPBSL_Scripter_win/BSL_Scripter_Windows/bsl-scripter-windows/pass32_default.txt
    [11] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff]
    [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff]
    [ff]
    RX_DATA_BLOCK blinkLED_FR5739.txt
    Read Txt File : C:/Users/user/Downloads/MSPBSL_Scripter_win/BSL_Scripter_Windows/bsl-scripter-windows/blinkLED_FR5739.txt
    [10] [00] [c2] [00] [5a] [14] [21] [82] [c8] [0c] [15] [48] [02] [00] [07] [43]
    [4d] [3c] [cc] [07] [3d] [40] [0c] [00] [b0] [13] [ca] [c3] [cf] [08] [0f] [5c]
    [1e] [4f] [0c] [00] [1d] [4f] [0e] [00] [c6] [08] [06] [5c] [26] [52] [2a] [46]
    [1f] [46] [02] [00] [0c] [58] [19] [4c] [08] [00] [1b] [4c] [0a] [00] [0d] [93]
    [1b] [20] [0e] [93] [19] [20] [3e] [40] [00] [00] [3e] [90] [00] [00] [2d] [24]
    [1a] [53] [0f] [63] [1e] [46] [02] [00] [0f] [18] [4e] [5e] [00] [18] [6e] [d6]
    [6e] [4e] [4e] [4e] [5e] [06] [00] [18] [56] [4e] [00] [00] [cc] [0a] [cd] [0f]
    [ce] [09] [cf] [0b] [46] [13] [17] [3c] [0c] [43] [0c] [93] [0b] [20] [0f] [93]
    [09] [20] [0c] [93] [07] [20] [0b] [93] [05] [20] [cc] [09] [cd] [0a] [b0] [13]
    [e2] [c3] [09] [3c] [81] [4e] [00] [00] [81] [4d] [02] [00] [cc] [09] [cd] [0b]
    [ce] [0a] [b0] [13] [48] [c3] [15] [48] [02] [00] [17] [53] [07] [95] [b1] [2b]
    [21] [52] [55] [16] [10] [01] [3a] [14] [3f] [40] [00] [00] [3f] [90] [00] [00]
    [04] [24] [3c] [40] [00] [00] [b0] [13] [00] [c2] [19] [42] [5c] [01] [b2] [40]
    [80] [5a] [5c] [01] [3f] [40] [00] [00] [3f] [90] [00] [00] [21] [24] [3f] [40]
    [00] [00] [3f] [90] [00] [00] [1c] [24] [3a] [40] [00] [00] [3a] [80] [00] [00]
    [5a] [09] [38] [40]
    [10] [f0] [c2] [00] [00] [00] [3c] [48] [3d] [48] [3e] [48] [3f] [48] [c7] [0c]
    [cb] [0d] [1c] [53] [0d] [63] [0f] [18] [4b] [5b] [00] [18] [4b] [d7] [6b] [4b]
    [4b] [4b] [5b] [06] [00] [18] [5b] [4b] [00] [00] [4b] [13] [1a] [83] [eb] [23]
    [79] [c2] [39] [d0] [08] [5a] [82] [49] [5c] [01] [b0] [13] [06] [c4] [3f] [40]
    [00] [00] [3f] [90] [00] [00] [08] [24] [3a] [40] [00] [00] [02] [3c] [6a] [13]
    [2a] [52] [3a] [90] [00] [00] [fb] [23] [37] [16] [10] [01] [0a] [14] [1a] [41]
    [08] [00] [1b] [41] [0a] [00] [0f] [18] [4d] [5d] [00] [18] [4d] [dc] [0f] [18]
    [4f] [5f] [00] [18] [4f] [de] [0b] [93] [02] [20] [0a] [93] [0d] [24] [0c] [43]
    [0e] [43] [ad] [00] [01] [00] [fd] [4f] [ff] [ff] [1c] [53] [0e] [63] [0e] [9b]
    [f8] [2b] [02] [20] [0c] [9a] [f5] [2b] [0a] [16] [10] [01] [b2] [40] [80] [5a]
    [5c] [01] [f2] [d0] [20] [00] [24] [02] [f2] [d0] [20] [00] [22] [02] [f2] [e0]
    [20] [00] [22] [02] [0d] [14] [3d] [40] [32] [82] [1d] [83] [fe] [23] [0d] [16]
    [f6] [3f] [03] [43] [31] [40] [00] [20] [b0] [13] [02] [c4] [0c] [93] [02] [24]
    [b0] [13] [b2] [c2] [0c] [43] [b0] [13] [88] [c3] [b0] [13] [fc] [c3] [02] [12]
    [32] [c2] [03] [43] [82] [4c] [c0] [04] [82] [4d] [c8] [04] [1c] [42] [ca] [04]
    [32] [41] [03] [43]
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Nirmal,

    Your log file checks out and shows you programmed the device correctly. If the BSL scripter was unable to detect the MSP430 in BSL mode, or didn't receive correct acknowledgements from the BSL comms, the log would of shown that failure. How do you define "not being able to program the device with MSP-FET + BSL"?

    After running your script, can you read out flash via JTAG to make sure it was programmed? If you reset the device after using the script, does you updated program start?

  • Hi Jace,

    We tried this. The log looks more like a monologue, showing what the BSL scripted is sending. Is the BSL version response supposed to be just one byte? The earlier scripter seemed to have clear "FAILED" or "DONE" messages. Here, we have no idea what is happening!

    Using Elpotronic, we see that even after the BSL load, the program is the same as what we had programmed earlier from CCS (making sure it's a very different program compared to the simple blinky we are loading through BSL). Even if we reset or power-cycle the device, there is no change, which is expected, given that JTAG shows that no new program has been loaded.

  • Anup,

    I just realized you are using FR5739 which is one of our FRAM devices. With the FRAM devices have their BSL stored in ROM and thus are unable to be changed. Originally I was thinking you were using one of our Flash devices. If you want to add a custom BSL to an FRAM device, you will have to use the MSPBoot library to do so. The MSPBoot resides in main memory, but gives you a flexible bootloader. you can find MSPBoot at the following Link. http:/.../mspbsl

    Sorry for the confusion here and my miss-identification of the part you were using. I'll give some feedback to the BSL Scripter team to include messages in the scripter about trying to program FRAM BSL devices.
  • Hi Jace,

    We are NOT trying to reprogram the BSL itself, but want to load our program into the FR5739 using the BSL scripter and MSP-FET tool.

    Please help.
  • Understood. I also ran into this issue. I have reached out the the BSL-Scripter team and will let you know their feedback when available.
  • NIrmal,

    I have now been able to program the FR5739 FraunchPad with MSP-FET using BSL-Scripter. Please see the following simple script for details. Also, please check HW connections between Fraunchpad and MSPFET. For BSL usage, the target must be connected to the MSP FET via Test & RESET pins. This is not the same configuration that SBW uses.

    HW Connection Example:

    Simple Script:

    LOG
    //
    //COM Port must be BackChannel UART  (Application)
    MODE FRxx UART COM61
    //
    RX_PASSWORD pass32_wrong.txt
    //
    DELAY 2000
    //
    RX_PASSWORD pass32_default.txt
    //
    //Simple Blinky Example not included
    RX_DATA_BLOCK Blink_FR57xx.txt
    //
    CRC_CHECK 0x4400 0x0020
    //
    SET_PC 0x4400

  • Hi Jace,
    Problem solved with the solution given by you. Thanks a lot for your kind attention.

**Attention** This is a public forum