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.

MSP432E401Y: Program flash through serial port using UniFlash and the ROM bootloader

Part Number: MSP432E401Y
Other Parts Discussed in Thread: UNIFLASH, MSP-EXP432E401Y,

I am trying to use UniFlash to program the MSP432 using a standard USB-Serial converter.  The MSP432 has been completely erased, so the ROM bootloader should start on reset.  I tested using a terminal program and I see the correct response from the bootloader when I send 0x55 0x55.  When I connect UniFlash to the same serial port and start programming, I get an error that the BSL did not respond.  

I am using an MSP-EXP432E401Y development board for testing.  I changed the jumpers to map UART0 directly to a header and tested again with a terminal.  I see the same response to the auto-baud sequence.  This configuration bypasses the onboard XDS110.  UniFlash gives the same error response in this configuration.

I am able to use UniFlash to program the MSP432 through the XDS110 connection, but not through a standard USB-Serial converter connected to UART0.

What is the correct configuration to be able to program a blank MSP432 through a Serial-USB converter using UniFlash?

My issue is similar to this one:

https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/833394?tisearch=e2e-sitesearch&keymatch=msp432e401y%25252525252520bootloader

I see the response when I use a terminal emulator, but UniFlash does not seem to get it and reports an error about no response from the BSL.

  • In the other thread you referred to, Markus was using BSL Scripter, and I believe the situation was the same - it worked using the USB adapter, but only when going through the XDS110.  The target WAS responding with the correct sequence, but Scripter did not recognize it.  So it appears that Uniflash has the same problem.  It looks like Markus solved his problem by deleting one WHILE loop and recompiling Scripter.  That's not a simple undertaking even for Scripter, let alone Uniflash.

    I've messaged Markus in an attempt to get a copy of his executable, but no response so far.  It seems to be time for TI to take a look at this and fix it in both programs.  There are several open threads on this subject now, and if the scope or another terminal program confirms that the response sequence IS being received, then it appears the problem is in software, and may be the same problem in both Scripter and Uniflash.

    I should also say that I don't believe anyone has confirmed that it even works with a Rocket.

  • Robert,

    Adding onto George's comments, our BSL team have been looking into this issue. Their current recommendation for customers is to move to the existing LM Flasher tools. 

    BR,

    Seong

  • Could you please provide a little more detail.  I am not familiar with LM Flasher, but I found something called this on the TI site.

    http://www.ti.com/tool/LMFLASHPROGRAMMER?keyMatch=LM%20FLASH%20PROGRAMMER&tisearch=Search-EN-everything#descriptionArea

    I downloaded and installed this application and find it requires a .bin file to program. I could not find an option for binary output in Code Composer 9.2, and a web search led me to learning it must be created with a post-build step using an external tool tiobj2bin.

    When I ran this to convert my file I get the following error messages:

    tiobj2bin.bat failed on ofd470
    Please see processors.wiki.ti.com/.../Tiobj2bin_Failed
    tiobj2bin.bat failed on hex470
    Please see processors.wiki.ti.com/.../Tiobj2bin_Failed
    'E:\Code\cc\httpsget_MSP_EXP432E401Y_tirtos_ccs\Debug\armofd' is not recognized as an internal or external command,
    operable program or batch file.
    'mkhex4bin' is not recognized as an internal or external command,
    operable program or batch file.
    mkhex4bin failure occurred. Giving up.

    How do I create a .bin file using CCS 9.2?

  • Robert,

    Please see here -> 

    BR,

    Seong

  • Hi Seong,

    That's the same thread I read to find the information on using the external program to convert the file.  When I tried it I got the errors I posted in the earlier message.  That method doesn't seem to work with CC 9.2 for me.  Have you tried it?  Do you get the same errors?  

    Is there any timeframe when the UniFlash tool will be updated to properly support the MSP432 bootloader?

    Thanks,

    Rob

  • Rob,

    Please see this thread: https://e2e.ti.com/support/tools/ccs/f/81/t/580825

    No timeframe currently.

    BR,

    Seong

  • Hi George,

    Markus speaking ;-) I am back from holiday. I did upload my changes to the Github version and yes you are right that I did recompile the BSL scripter tool a cmd line version that can use the ROM bootloader within the MSP432E401Y. The SW package itself is huge. Therefore I only refer to the MSP432E401Y. Many other products are supported and I have not looked into the code for all of them! We are actually using the patched BSL-Scripter with 0815 USB to serial cable you can by from Mouser/DK etc etc.

    I am a System Design Engineer surely more of a HW engineer than a SW engineer. I just expect TI to fix it. It is doable. In my opinion this is something that has to be worked by the TI SW experts. When you read through the BSL-Scripter source code using VS studio from microsoft you can identify a serial problem regarding blocking vs nonblocking operational mode.

    That is what I basically changed. I am not 100% sure if this is really the root cause of the problem. However I did single step it and we did test the patched version on three different Windows OS platforms and on all of them it is working. This BSL scripter source code looks to me like it is being designed or creaded using a more uppler-level SW tool than just a 7Bit ASCII Editor. Anyway if you are interested, send me a private email and I will send you the compiled unofficial version of the BSL-Scripter and you can test it for your needs if you want to.

    br

    Markus

  • Thanks very much, Markus.  I don't have any 432E parts to test with, but I assume Robert can contact you if he wants to give Scripter a try with your recompiled version.

**Attention** This is a public forum