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.

MSP430F1101: Any BSL tool to program .a43

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

Hi Experts,

We would like to program our firmware onto the target board by on-board programming. This board only support BSL (TEST/RX/TX/VCC/GND). We have MSP-FET. The object file to program is .a43 format that was built by IAR tool long time ago.

Could you please inform any good tool and GUI to program this file?

Regards,

Uchikoshi

  • MSP-FET can be used for BSL programmer.

    For hardware connection, is it enough that we route below six signals from MSP-FET to our target board?

    Please also let us know what GUI we can use mode to program .a43 file by BSL mode.

    Regards,

    Uchikoshi 

  • Hello Uchikoshi-San,
    according to my knowledge, the IAR a.43 file should be Intel HEX format (but you could double check on this with IAR support). The latest GUI, which supports BSL and the loading images in Intel HEX format is the UniFlash Tool www.ti.com/.../UNIFLASH .
    As you indicated, the MSP-FET tool would be one possible debug interface tool, supporting the BSL HW connection.
    The MSP430F1101 needs to be connected at P2.2/CAOUT/TA0 for RX, and at P1.1/TA0 for TX.
    On further details of the BSL please refer to the www.ti.com/.../slau319v.pdf

    Best regards
    Peter
  • Hi Peter,

    I installed the latest Uniflash v4.6 and found that the new menu "Bootloader" was added as below. But it seems that BSL supports only F5x/6x and FRAM devices.

    Could you please confirm it again?

    Regards,

    Uchikoshi

  • Hello Uchikoshi-San,
    my apologies. You're correct. Unfortunately the F1xx devices are not supported, neither by the UniFlash nor by the BSL-Scripter.
    The only thing we offer for BSL of F1xx devices is the BSLScripter-3.4.0-windows-installer.zip package, which you can download from software-dl.ti.com/.../index_FDS.html .
    This contains a Demo for F1xx, F2xx and F4xx devices . ( (folder)Deprecated--only applicable for Windows package
    This folder contains the BSLDEMO2.exe for MSP430F1xx,MSP430F2xx, and
    MSP430F4xx devices.)
    The main problem here is probably the availability of a compatible HW tool, as the tools I know of MSP-FET or BSL-Rocket are up to my knowledge not supporting this Demo.
    We're sorry for this inconvenience.

    Best regards
    Peter
  • Peter, I believe BSLDEMO2 works with the Rocket.  In fact I believe the Rocket was originally designed for BSLDEMO.  I'm not sure about MSP-FET, but Table 1.2 of slau319v.pdf suggests it will work too.

    Alternatively, the OP is welcome to use my version of BSLDEMO, which would allow him to use a common USB-to-UART adapter, such as the FT232RL, the CP2102(N), or the CH340G, with the  relevant driver installed.  It's called BSLDEMO-2.01C.exe.

    https://github.com/gbhug5a/MSP430-BSL

    I added the -i and -j options to invert the polarity of DTR and RTS, respectively, some combination of which should work with those USB adapters.

    I don't know about A43 files.  If they are really Intel-HEX, then they would need to be converted to TI-TXT format for BSLDEMO.  On that same repo, there's a VB Script that does that conversion.  It's HEX2TXT.vbs.

  • Thank you for your proposal. It looks that BSLDEMO2 can work with MSP-FET but could not succeed. Adding to no document for "BSLDEMO2.exe", it seems to require some special command(UART baudrate) to configure MSP-FET to BSL mode. I am not sure how I can configure.

    Now I used MSP-GANG instead of MSP-FET and used a GUI for MSP-GANG which can support BSL mode. It looks like working fine at the moment.

    For alternative solution, please let us know how to configure MSP-FET to BSL mode for old device like F1101. Below is the capture using BSLDEMO2. I believe the wire connection is correct since MSP-GANG can program it.

    Regards,

    Uchikoshi

  • Hello Uchikoshi-San,
    one of the interesting documents is the MSP Debuggers User's Guide www.ti.com/.../slau647l.pdf , where you can find some comments on the activation of the BSL functionality. (please see section 5.6.3 Target BSL Connection and BSL-Scripter Support)
    The other document, which I would claim to be the main of interest, is the www.ti.com/.../slau319v.pdf
    Regarding the compatibility of the Demo code and the MSP430F1101, the statement from our tools department was, that it's not tested. Thus it may or may not work, and currently it is not planned to run a full set of tests.
    I am sorry for that inconvenience.

    Best regards
    Peter
  • Here's a thread I participated in earlier on this subject:

    https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/735052

    He was finally able to get the MSP-FET to generate the hardware invoke sequence by using a terminal program to change the baud rate to 9601.  But in the end, I believe he still had problems getting the process to complete, and apparently never got it to work.

    I don't have an MSP-FET, so am unable to experiment.  It's a real shame that TI doesn't have instructions for using MSP-FET with any of the older parts that use BSLDEMO, because they still sell  lot of those.  It's also disappointing that there's no customer here who has managed to get this to work and can tell us how to do it.  But at least you have MSP-GANG that works for you.

    For this particular F1101 part, I believe there are additional complications with using BSLDEMO.  It appears a "patch" has to be loaded.  See Sections 5.1 and 5.2 of slau319v.pdf.  So it appears MSP-GANG will be your best solution.

  • Peter, if BSLDEMO and MSP-FET do not work together, perhaps slau319 should be changed to remove the checkmark for MSP-FET in the second column of Table 1. Unless there is some other software that will drive MSP-FET BSL for these parts, it seems that change should be made. What do you think?
  • Hi George,
    definitely we should clarify that point, making sure it works, or be more specific about the families and conditions under which it is able to operate. I'll push for that, but it will take some time.

    Best regards
    Peter
  • Thanks very much. And if you come across any method for making BSLDEMO work with MSP-FET, I hope you will post it here. So far, I know of no one who has been able to make it work. I believe that would impact all of the F1, F2, F4 and G2 parts.
  • Gents,
    the responsible MSP430-Tools colleague is looking into this, checking back, whether we can make it work somehow, but the statement on the MSP430-FET is negative so far.
    The tests will take some time, expect 1-2days.

    Best regards
    Peter
  • Gents,

    to give you brief update. The root cause of the problem seems to be the entry sequence for the BSL.

    We have tested it with an old no longer available tool for RS232 interface. There the Demo example works. The difference we found so far, is the entry sequence, comparing it with the BSL rocket.

    Please see here the different sequences

    This is the entry sequence with the old tool.

    And this the sequence applied by the BSL rocket.

    We'll try to fix this, but it will probably take some time, as for the release, we need to go through testing it for other devices and GUIs....

    A potentially other option would be, to use another controller, which would load the image through USB from the PC, and than generate all the necessary signals for the download to the target. There is an application report describing this, but we have not tested this within the MSP430 tools department.

    Still maybe worth trying e.g. with the MSP432 LP MSP-EXP432P401R. The mentioned application report can be found on the MSP430 BSL homepage 

    Best regards

    Peter

  • Hi Uchikoshi-San,
    could you please let me know how urgent the resolution of the problem for the customer is, to be able to adjust resources, required fixing the problem accordingly? Many thanks in advance.

    Best regards
    Peter
  • Peter, I don't understand. Does the first scope image show what the MSP-FET produces as the hardware invocation pattern? I don't see how that could work for any part, even the new ones. It only has one pulse on Test, which doesn't match any of the valid patterns in slau319 and 550. Is that the pattern it produces even with BSL-Scripter and the newer parts?

  • Hi George,
    the first image shows, as commented, the signals of the internal BSL tool for an RS232 interface no longer available since many years. It is showing a low pulse on the RST and a high pulse on the Test pin.
    The MSP-FET is not included yet in the tests, as it is not expected to work anyway.

    Best regards
    Peter
  • Thanks, Peter. I should have seen that. Can I add one further question to the test? If it is found that the BSLDEMO MSP-FET combination cannot be persuaded to generate the hardware invocation, would it still be possible to use them together if BSL is invoked by firmware on the chip? If that works, then you could leave the MSP-FET checkmark for those parts in the table in slau319, with perhaps a footnote clarifying that MSP-FET only works with "calling BSL from software application".
  • Hi George,
    that's of course a valid suggestion. We're working on the whole topic of cleaning this up. Once we'll have a better understanding of all the options with existing tools, we will consider this one too.
    So far I can only say, it looks like it's just the invocation of the BSL, but we did not run a complete test yet.

    Best regards
    Peter
  • I don't want to take up space here, but if there's a way to do so, I'd like to submit comments via email about another option before this gets put to bed.
  • Hi George,
    if you'd like to share something with TI privately, you can do that via the E2E infrastructure, by requesting the friendship of mine and then post the private content with me not visible publicly.

    Best regards
    Peter
  • I sent you a private message. Hope it got through to you.

**Attention** This is a public forum