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.

MSP430F1121: Recommendation for upgraded BSL programmer (Using MSP430G2 Launchpad)

Part Number: MSP430F1121
Other Parts Discussed in Thread: MSP430G2231, MSP-FET

I have decided to try with the MSP430G2 Launchpad and also with BSL-Rocket (which I may ask about seperately). I have a few questions, listed  below, related to what i am thinking that I need to do.

1) Since I am using the MSP430F1121 part (I confirmed that it is not the A part) as a target, and the Launchpad with MSP430G2231 as my programmer, should I be compiling the code for the G2231 or for F1121 in CCS? I'm a little confused about that.

2) I am using slaa535a as a guideline to program my device, and I did get the sample Launcpad BSL interface code provided with the document to compile, however the doc says that the MSP430 Flasher should be used to flash the firmware into the G2231. Is this still valid or can I flash the firmware using CCS v8?

- I assume that this only needs to be done once.

3) I am trying to use the deprecated BSLDEMO2.exe and also the BSLDEMO-2.01c.exe (suggested by George Hug)to program my F1121 part, however, I am getting the following errors:

C:\ti\BSL_Scripter\DEPRECATED\BSLDEMO>BSLDEMO2.exe -cCOM67 -btest.hex
MSP430 Bootstrap Loader Communication Program (Version 2.02 - 2017)
Mass Erase...
Additional mass erase cycles...
Transmit standard password...
BSL version: 1.10 - Family member: F112 - Process: 1040
Load PC with 0x0C22...
Transmit standard password...
Load new BSL "fpl_test.hex" into RAM at 0x0300...
Program starting at 10ff6e4, 238 bytes... Error: 0
00 KByte ▐▌Program starting at 10ff7d2, 238 bytes... Error: 0
Program starting at 10ff8c0, 176 bytes... Error: 0
Verify new BSL "fpl_test.hex"...
Check starting at 3030303a, 238 bytes... Error: 0
Verification failed at 3030303a (f2, ff)
ERROR: Verification failed!

C:\ti\BSL_Scripter\DEPRECATED\BSLDEMO>BSLDEMO-2.01c.exe -cCOM67 -btest.hex
MSP430 Bootstrap Loader Communication Program (Version 2.01c)
Mass Erase...
Additional mass erase cycles...
Transmit standard password...
BSL version: 1.10 - Family member: F112 - Process: 1040
Load PC with 0x0C22...
Transmit standard password...
Load new BSL "fpl_test.hex" into RAM at 0x0300...
Program starting at 19fe34, 238 bytes... Error: 0
00 KByte ▐▌Program starting at 19ff22, 238 bytes... Error: 6
ERROR: Communication Error! 

How can I determine what is causing these errors?

  • My version of BSLDEMO was only intended to provide options to switch the polarity of DTR and/or RTS so things would work using a third-party USB-to-Serial adapter like the CP2102.  If you are using the Rocket, or connecting with the Launchpad, then there should be no need for my version.

    I believe the intent of SLAA535A is to flash the 2231 with software which will handle the parity bit correctly.  Since the 2231 has no BSL, it's necessary to use JTAG to flash it.  MSP430 Flasher can be used with the G2 Launchpad to do that, but the TI people will need to answer whether CCS can be used instead of Flasher.  Anyway, that flashing is only done once to prepare the 2231.  And by the way, you don't actually need to compile the 2231 code in CCS - the binary files are included in the 535A.zip.

    If you are set up per Figure 5 in the pdf, with the 2231 already flashed, then I believe flashing the F1121 should work.  However, it appears the non-A version requires loading PATCH.TXT which is included in the Deprecated folder.  That's shown in SLAU319, Section 5.2.  But I don't understand what's said there.

    I've never tried it, but I believe the Rocket would let you connect directly from the PC's USB port to the F1121.  However, the PATCH.TXT thing would still be needed.

    I don't know what's causing the errors.

    Hopefully the TI guys will have more useful information for you.

  • Thanks George, I have also tried running BSLDEMO2.exe with the PATCH.txt file from the DEPRECATED folder , but that causes the BSLDEMO2.exe to crash.
  • Well perhaps the TI people will see fit to respond here.
  • Hi James,

    This is not a duplicate thread, it is a related question. Can you please take a look at it and let me know what I might be doing wrong?


    Thanks,
    Nicole
  • Nicole,

    Let's break this down to get some clarification here. When programming an MSP430 via the BSL by of a PC,  there are a few areas we can break up the process into. Hopefully the information below can help clarify things. 

    1. Program/Application/Image to be loaded onto your end device.
      1. Compile this with your IDE of choice (CCS/IAR/GCC,etc.) 
      2. Store the binary image created somewhere easily navigated to
    2. Programmed used on your PC to talk to the BSL
      1. Typically this is the BSLSCRIPTER SW.
      2. However, with our older devices, such as the MSP430F1121, you need to use the BSLDEMO2.exe found within the Deprecated folder of the BSLSCRIPTER download. This is due to the change in BSL protocol between chip generations.
      3. This is a command line interface program. Be sure to familiarize how to use this instead of typical GUI applications.
      4. A script is typically used to execute the BSL programming commands in correct order. Example scripts are given in the BSLSCRIPTER download. Please read BSL documentation for your device for exact commands available. 
    3. The Hardware interface between your PC and the MSP430 being programmed
      1. MSP-FET cna be used
      2. BSL Rocket can be used
      3. The app note you have pointed to gives you an alternative programming interface to the options mentioned above. The app note includes a binary for the G2231 LP so no recompile is necessary. Download the binary to the launchpad via MSPFLASHER or Elprotronics Lite FET Pro 430 tool. These are the easiest to use to load binaries, but CCS/IAR can potentially be used as well. The source is given as well for transparency.

**Attention** This is a public forum