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.

CCS/MSP430FR2422: Programming blank device from CCS or Uniflash thru BSL Interface - Error

Part Number: MSP430FR2422
Other Parts Discussed in Thread: UNIFLASH, , MSP-FET

Tool/software: Code Composer Studio

Hi,

I've spent a lot of time understanding how to connect the FR2422 thru BSL interface and I can't seem to get it working with Uniflash.  It is also unclear to me if I can use CCS with BSL in UART mode which is why I am trying to use Uniflash.

I have made the connections listed below; I am opening my CCS compiler output in Uniflash and attempting to load the image.  I keep getting the same error message no matter what: "Image loading failed: Flash Generic, Loading Images... Error: -1"

Connections (PW Package 16-pin):

Signal BSL Function MSP-FET Pin
nRST/NMI/SBWTDIO Entry Sequence Signal RST, 11
TEST/SBWTCK Entry Sequence Signal Test, 8
TXD (P1.4) Data Transmit UART_TXD, 12
RXD (P1.5) Data Receive UART_RXD, 14
VCC Power 2,4 (switched)
VSS GND 9

I have tried using both pin 2 and 4 from the FET for power.

My output from uniflash (in verbose mode) is as follows:

[4/15/2020, 5:00:47 PM] [INFO] MSP430: MSP430FR2422(Bootloader)
[4/15/2020, 5:00:50 PM] [INFO] MSP430: BSL Password is correct!
[4/15/2020, 5:00:50 PM] [INFO] MSP430: [80] [21] [00] [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] [9e] [e6]
[4/15/2020, 5:00:50 PM] [INFO] MSP430: {00}{80} {02} {00} {3b} {00} {60} {c4}
[4/15/2020, 5:00:50 PM] [INFO] MSP430: Vendor:[TI] CI:[08] API:[35] PI:[B3]
[4/15/2020, 5:00:50 PM] [INFO] MSP430: [80] [01] [00] [19] [e8] [62]
[4/15/2020, 5:00:50 PM] [INFO] MSP430: {00}{80} {05} {00} {3a} {00} {08} {35} {b3} {35} {9f}
[4/15/2020, 5:00:50 PM] [INFO] MSP430: Erasing main memory is successful!
[4/15/2020, 5:00:50 PM] [INFO] MSP430: [80] [01] [00] [15] [64] [a3]
[4/15/2020, 5:00:50 PM] [INFO] MSP430: {00}{80} {02} {00} {3b} {00} {60} {c4}
[4/15/2020, 5:00:50 PM] [ERROR] MSP430: [ERROR]Unknown Command!
[4/15/2020, 5:00:50 PM] [INFO] MSP430: [80] [04] [00] [12] [00] [18] [00] [d5] [f8]
[4/15/2020, 5:00:50 PM] [INFO] MSP430: {00}{80} {02} {00} {3b} {07} {87} {b4}
[4/15/2020, 5:00:50 PM] [ERROR] MSP430: [ERROR_MESSAGE]Process is failed!

It always says that the password is correct (blank device) but never gets past this point.

I do have a 1nF capacitor from RST to GND (datasheet states 1.1nF max in BSL mode) and 47k Pull-up to VCC.

I do have Uniflash set to the correct COM port for the FET and I am not using the ROCKET board, I am wiring it directly.  I've checked VCC voltage level and it is good.

Can anyone give me a hint here?  This is my first experience with MSP430 and I feel like I'm missing something simple.  It seems to communicate up to the error point just fine and I can't find information on this Flash Generic, Loading Images -1 error.

  • Hallo,

    could you please let me know the Uniflash version you are using?

    What are the settings in the "Settings & Utilities" tab?

    If it's possible, can we have the image file, so that we can test and try to reproduce the issue?

    Thanks

    Regards

    Kostas

  • I am using v5.3.1.2665, I have also tried 2 other recent versions but I do not recall which versions, but they had the same result.  I just updated to this 2665 version yesterday.

    My settings are as follows:

    COM13 (this is the correct UART on the FET, not the debug UART)

    Communication Bridge: MSP-FET

    Protocol: UART

    UART Speed: 9600 (I have tried other speeds and it gives the message that baud rate change was successful when I try to program it)

    UART Parity: Even

    Erase Setting: I have tried Do Not Erase, Erase Main Memory Only, Erase Information Memory Only, and Erase Main and Information Memory, all have same result

    Verify Settings: Automatic verification

    JTAG: No JTAG Configuration

    I can't provide the image file because it belongs to my employer.  I could provide some information from it that does not reveal the code, what part(s) would be helpful?

    The strange thing to me is that if I put in all FF for the password under the "Read" section, it seems to read just fine, no errors.  It is a blank device so obviously the information I read is not useful but it does not give any errors when reading, say 512 Bytes from main memory.

    Is there another tool that i could use?  I am trying to understand BSL scripter but I am slow to come up to speed.  I am an EE by trade and not an expert embedded guy.

  • By the way, this is being programmed on a custom PCB which contains only the microcontroller and supporting components.  I have sufficient capacitance between DVCC and DVSS, close to the IC, the 47kOhm pull-up on RST, 1nF capacitor to GND on RST,  and other than this there are just a few components connected to other GPIO pins (pins not used in the BSL interface) for interface as used in this application.

  • Thanks for the response and the additional info.

    Let's first check based on the given info and I will let you know if still needed to get additional info on the image file.

    Regards

    Kostas

  • Hallo,

    thanks again for reporting this issue.

    We tried out and it looks likes it's an issue with the current version of the UniFlash FW.

    My colleagues are working correct that and will be released in the next version of the UniFlash.

    Short explanation:

    There is a difference between the FRAM and the Flash devices.

    The erase option: "erase main, information memory..."  applies only to the Flash devices.

    For the FRAM it does not apply and generates the error

    [4/15/2020, 5:00:50 PM] [INFO] MSP430: [80] [04] [00] [12] [00] [18] [00] [d5] [f8]
    as the command is not recognized.

    You stated above, that you tested also the options "Erase main memory only" and "Erase main memory and information memory" and it did not work.

    In our tests we have seen that the first 2 option work so far.

    Could you please re-test on your side and let me know?

    This should be a workaround option since the new version is released.

    Hope it works, and sorry for the inconvenience.

    Regards

    Kostas

  • Kostas,

    Thanks for your help.  Maybe I have more than one problem here.  With a blank device, if I select "Do not erase memory" or "Erase main memory only" I get the folllowing output:

    [4/17/2020, 10:49:11 AM] [INFO] MSP430: MSP430FR2422(Bootloader)
    [4/17/2020, 10:49:14 AM] [INFO] MSP430: BSL Password is correct!
    [4/17/2020, 10:49:14 AM] [INFO] MSP430: [80] [21] [00] [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] [9e] [e6]
    [4/17/2020, 10:49:14 AM] [INFO] MSP430: {00}{80} {02} {00} {3b} {00} {60} {c4}
    [4/17/2020, 10:49:14 AM] [INFO] MSP430: Vendor:[TI] CI:[08] API:[35] PI:[B3]
    [4/17/2020, 10:49:14 AM] [INFO] MSP430: [80] [01] [00] [19] [e8] [62]
    [4/17/2020, 10:49:14 AM] [INFO] MSP430: {00}{80} {05} {00} {3a} {00} {08} {35} {b3} {35} {9f}
    [4/17/2020, 10:49:14 AM] [ERROR] MSP430: [ERROR_MESSAGE]Process is failed!
    It still fails and I don't yet understand why.
  • One more observation - I created a password.txt file with an incorrect password for a blank device (not all FF) and I still get this same message in the console "Password is correct!" - Is this normal?

  • Hi,

    could you please confirm which image file format that you are using? the supported file should be Intel hex file, or TI TXT file. in parallel, I will provide some steps that you could try on your side to make sure we have the same setup.

  • Hi,

    Other than to make sure the image file format is correct, I would like to propose this test:

    1. download the BSL scripter under http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPBSL_Scripter/latest/index_FDS.html

    2. locate the BSL-Scripter.exe together with 4 files I attached here on the same folder

    3. edit script.txt to have the correct comport to which your MSP-FET application uart is connected

    4. through terminal/cmd, run this command: > BSL-Scripter.exe script.txt

    The script shall download a generic blink LED. (you might not have the LED on the board, but that's okay) to see the programming runs correctly, the terminal shall show:

    MODE FRxx UART COM48
            Baud rate setup for UART is not given / wrong
            It will be setup to the default 9600baud
    RX_PASSWORD wrong.txt
            Read Txt File  : c:\Users\a0406885\Desktop\test\wrong.txt
            [ERROR_MESSAGE]BSL Password is error!
    RX_PASSWORD default.txt
            Read Txt File  : c:\Users\a0406885\Desktop\test\default.txt
            BSL Password is correct!
    TX_BSL_VERSION
            Vendor:[TI] CI:[08] API:[35] PI:[B3]
    RX_DATA_BLOCK blink.txt
            Read Txt File  : c:\Users\a0406885\Desktop\test\blink.txt
            Time elapsed of writing 116 bytes : 0.2305 seconds
            Speed of writing data :0.4914(kB/s)

    if this is working, change the last line on script RX_DATA_BLOCK blink.txt to have your image file, either in .txt or .hex file.

    /cfs-file/__key/communityserver-discussions-components-files/166/5280.script.txt

    /cfs-file/__key/communityserver-discussions-components-files/166/wrong.txt

    /cfs-file/__key/communityserver-discussions-components-files/166/default.txt

    /cfs-file/__key/communityserver-discussions-components-files/166/blink.txt

  • Hi

    I haven’t heard from you for a couple of days now, so I’m assuming you were able to resolve your issue.

    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.

    Regards

    Kostas

**Attention** This is a public forum