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.

MSP430F5514: Invoking UART BSL

Part Number: MSP430F5514
Other Parts Discussed in Thread: UNIFLASH, MSP-FLASHER, MSP430F5529, MSP-FET, MSP-EXP430F5529LP

Hello Experts,

Our customer is using MSP430F5514 in current system, in addition, customer also has a plan use MSP430F5514 in the next model.

In next model, this application plans to invoke UART BSL. According to MSP430F5514’s datasheet, there is the description that is “A UART BSL is also available that can be programmed by the user into the BSL memory by replacing the preprogrammed, factory supplied, USB BSL”. Therefore, Our customer tried to update BSL memory. The UART BSL which customer had used is as follows. Also, customer seems to use Uniflash with the following procedure. After that, Customer tried to transfer BSL command to P1.2(UART Rx), however, customer was not able to confirm any response from P1.1(UART Tx ) of MSP430F5514.

Therefore, we got some inquiries about MSP430F5514’s UART BSL function.

  1. Regarding MSP430F5514’s UART BSL firmware, would customer be able to use the following firmware (MSP430F552x_550x_Family\UART BSL\ BSL.00.07.05.04.txt) ?    If this one is not supporting MSP430F5514, could you share UART BSL firmware with us, please ?

            This firmware may be for MSP430F552x_550x_Family. so, I tried to find it, but, I was not able to reach UART BSL firmware for MSP430F5514.

        2. Customer seems to use Uniflash with the following procedure.Can we have your Expert’s advice/comments on this please?

[ UART Firmware for MSP430F5514]

http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPBSL_CustomBSL430/latest/index_FDS.html

MSP430BSL_1_01_00_01\Released_BSL_Images\MSP430F552x_550x_Family\UART BSL\ BSL.00.07.05.04.txt

[ Procedure ]

  1. Filled “0xFF” data into empty area of “BSL.00.07.05.04.txt file” and renamed “BSL.00.07.05.04_forUniFlash.txt”
  2. Convert textual data to binary data (BSL.00.07.05.04_forUniFlash.txt -> BSL.00.07.05.04_forUniFlash.bin)
  3. Burn-in “BSL.00.07.05.04_forUniFlash.bin” to 0x1000-0x17FF area by UniFlash(v4.5.0) tool.

 

It is really appreciated if you would be able to share your advice/comments on this.

Thanks and best regards,

Miyazaki

  • Hi Takayuki

    After the procedure you mentioned before with the UniFlash, dose the BSL works well with the hardware invoke?

    Best regards
    Gary
  • Hi Gary,

    Thanks for your help.

    I could confirm that customer was evaluating MSP430F5514’s UART BSL with MSP430 LaunchPad. Since customer would like to support UART BSL, customer did not check if Default BSL (USB BSL) was working well.

    Customer tried to update BSL which was “MSP430BSL_1_01_00_01\Released_BSL_Images\MSP430F552x_550x_Family\UART BSL\ BSL.00.07.05.04.txt” as I mentioned. However, there was not any response from MSP430F5514’s UART.

    Therefore, I suppose, this UART BSL is not supporting MSP430F5514, Or ,UART BSL firmware was updated incorrectly with Uniflash.

    First of all,

    I’d like to clarify if this UART BSL is supporting MSP430F5514 or not. Because this file name is MSP430F552x_550x_Family. Can we have your comments on this, please?

    Regards,  Miyazaki

  • Hi Takayuki

    The MSP430F5514 BSL should support UART. And due to MSP430F5514 and MSP430F552x are the same family so the UART BSL firmware should be work with MSP430F5514. So you can let the customer to do some tests below to find the bugs

    1. Before send the BSL command you should do invoke the device to BSL mode. For the invoke ways you can refer to BSL user's guide section 1.3 

    2.After you invoke the the BSL you should send the BSL password first. 

    3.If the customer finished the invoke and password and it even not work, you can capture the wave of Reset pin, Test pin , UART RX and TX pins singnals for me to analyze.

    Best regard

    Gary

  • Hi Gary,

    Thanks for your clarification and advice. I suppose this issue may be related to #2 BSL password. Therefore, to avoid miss, I tried to look for Host-sides-example-code in http://www.ti.com/tool/mspbsl, but, I could not find it.Could you share it with us, please? Or , if you will be able to share helpful wiki-URL, it is really appreciated.

    And then, there is possibility that UART-BSL firmware is updated incorrectly by uniflash, so, I’d like to suggest customer to update UART-BSL firmware by MSP-Flasher. What would you think this suggestion. Can I have your comments, please?

    You already noticed, customer would like to update the firmware via UART from External MCU.

     

    Best regards,

    Miyazaki

  • Hi Takayuki

    For the external MCU host demo code for BSL we have the demo based MSP430P401 www.ti.com/.../getliterature.tsp
    You can have a try.

    Best regards
    Gary
  • I'll take over Takayuki Miyazaki and continue asking questions.
    This problem has not been solved yet.
    We confirmed that described in this thread, but we can not observe response from BSL(UART).

    Report my situation.
    . I'm writing BSL.00.07.05.04.txt to MSP430F5514 and trying to update using BSL(UART).
    . Writing BSL.00.07.05.04.txt to MSP430F5514, verify is also successful.


    . wave_00.JPG : Attach the BSL entry sequence waveform.

    . wave_01.JPG : There is no response to that command that don't require password.(change baudrate)

    . wave_02.JPG : There is no response to that command "RX password to unlock BSL".
    In the first place, wave_01.JPG and wave_02.JPG have no response to synchronization character. (1byte:0x80)

    . We confirmed command protocol.
    config_00.JPG : config value of logic analyzer when acquiring wave_01.JPG and wave_02.JPG


    Separately,
    although it is said that BSL.00.07.05.04.txt can also be used for MSP430F5514,
    there is no description of MSP430F5514 on the target device of BSL.00.07.05.04.txt in the following URL.
    about I am concerned that I can not use it.
    www.ti.com/.../slau319w.pdf
    -> 5.5 F5xx and F6xx Flash-Based BSL Versions


    Please tell me if there are other actions to check.

    Best regards.

  • Hi

    I have setup the hardware with MSP430F5529. I will feedback to you when I finish the test.

    Best regards
    Gary
  • I have a question about this. For a part with UART BSL built in, the response to the hardware invoke sequence on /Reset and Test is hard-coded somewhere. But if a part comes with native USB BSL, is that same hard-coded response to the sequence even present in such a part? My understanding is that hardware invocation of UBS BSL is done completely differently. So perhaps there is never a response to the /Reset-Test sequence for such a part even if a new UART BSL is installed. If so, that would mean that any UART BSL would have to be invoked from firmware. That could explain why there is no response to the hardware sequence in this case. It would be interesting to see if invoking the UART BSL from firmware works.
  • Hi Gary,

    Can we have any update for this, please?

    best regards,
    Miyazaki
  • Hi Takayuki

    Sorry for the late response. I am doing the test now and I will feedback to you today.

    Best regards
    Gary
  • Hi Takayuki

    I have test the code today and it works well. When use the uniflash to down load the image you should set the Uniflash like this

    When you finished it will appear success like this

    When I finished the image download I use the BSL rocket (You can also use the MSP-FET) to do the mass erase with the UART BSL and it is success(I have attached the .txt file that be used by the BSL script

    b.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    LOG
    MODE 5xx UART COM35
    //MODE FRxx I2C 400000 COM33
    DELAY 1000
    RX_PASSWORD .\pass32_default.txt
    DELAY 2000
    RX_PASSWORD .\pass32_default.txt
    //RX_PASSWORD test.txt
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    )

  • Thank you for the test.
    We did the same test using MSP-EXP430F5529LP, and we were able to observe the response of the BSL-command.
    but, in case using MSP430F5514, we were not able to observe the response from BSL.

    Please answer three questions.
    .Can you test BSL.00.07.05.04.txt with MSP430F5514 ?
    .Is BSL.00.07.05.04.txt really compatible with MSP430F5514 ?
    .Is there a way to F/W update using the UART ? Other than using BSL.00.07.05.04.txt.

    Best regards
  • Hi

    I have applied some MSP430F5514 samples and will do more test later. I will feedback to you when I finished the test as soon as possible.

    Best regards
    Gary
  • Hi Gary,

    Can we have current status and test results for MSP430F5514 ?
    I'm sorry for rushing you, but this is also required asap.

    Best regards,
    Miyazaki
  • Hi Takayuki

    Sorry for the late reply. I have reproduce the issue on my side. I am co-work with tools team to find a workaround for this issue. Please give us some time to solve this, thank you.

    Best regards
    Gary
  • Hello Gary,

    It has been one week since expert’s investigation was started. Can we have any update for this?

     

    Best regards,

    Miyazaki

  • Hi Takayuki

    Sorry for the late reply. We have not found the root cause yet. But for the work around here you can use the boot loader for flash device to support the UART. For more information you can refer to the document www.ti.com/.../slaa600d.pdf
    For the BSL, I will update it if I have any progress here.

    Best regards
    Gary
  • Hi Gary,

    Thanks for sharing the current status. I hope you are able to find the root cause of this, soon.
    This issue seems to be deep-seated.

    Best regards,
    Miyazaki
  • Hi Takayuki

    For this issue is under investigation, I will update the result when we fix this issue by the email. Here I will close this thread first. Thank you.

    Best regards
    Gary

**Attention** This is a public forum