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.

MSPBSL: About firmware update using MSPBSL

Part Number: MSPBSL
Other Parts Discussed in Thread: MSP-FET, MSP430F6769A, MSP430F4783

Hi,

I would like to receive ideas.

I want to update the firmware of MSP430 using USB.

The MSP430 is inside the machine, but with J-TAG, the machine would have to be dismantled, so I would like to update it so that it cannot be opened.

Therefore, since the machine has a USB interface, I would like to import data from there.

I thought that if I use MSPBSL, I can bridge the PC and USB.

However, the PC side can be connected via USB, but the 10-pin side cannot be connected to MSP430 unless it is converted to USB.

In the first place, like MSP-FET, is this also used on the premise of J-TAG?

If so, I would like to know how to update via USB instead of via J-TAG. Please let me know if you have any ideas.

Thanks,

  • Hi Toshiharu,

    It does sound like some type of BSL Interface is what you want to use. Which MSP430 device are you currently using? Our MSP430's with USB support do come loaded with a USB Bootloader, so you can update via your PC without additional debugger hardware.

    For the Non-USB devices most will either support UART or I2C bootloaders by default. Those you would need a USB-UART or USB-I2C bridge for, but that would mean you don't need to connect to anything via JTAG to update firmware.  

    Best Regards,
    Brandon Fisher

  • Hi, Brandon Fisher

    Thank you for answering.

    Sorry for the lack of information.

    The device is MSP430F6769A.

    Looking at the table, it is compatible, but I think you can probably send and receive directly from the PC's USB port, or use a USB device.

    Up until now, our company has been using USB devices to exchange data. This did not use MSP430.

    Looking at what you told me, is it correct to understand that MSP-BSL is required only for MCUs that cannot communicate with USB when using BSL?

    The table states that MSP430F6××× supports BSL and USB, so I believe that MSP-BSL is not necessary.

    To summarize,

    ・MSP430F6769A is BSL and USB is accepted from the beginning.

    ・MCUs that do not accept USB with BSL require a separate MSP-BSL. Do you understand each other?

    Thanks

  • HI Toshiharu,

    The MSP430F6769A is not a USB device, so it would actually be in the other column, and would support BSL via UART (see the datasheet for default BSL Pins).

    You would need to be able to send UART commands over your USB interface. There are many devices out there that are essentially USB->UART adapters which you could use. Not sure if the USB device you are talking about is one of these or something else, but to summaraize you can reprogram the device over BSL provided you have a way of first invoking BSL (this is normally done via the TEST and RST pins, but can also be done in software), and then a way of actually sending the required UART command packets to the device to program it. 

    Best Regards,
    Brandon

  • Hi Brandon Fisher94

    Thank you again for your reply.

    I am grateful.

    I wrote it wrong again. I am very sorry.

    As you said, communication is performed using a USB device.

    Commands are sent via UART conversion via the USB interface.

    This is already installed in our existing products.

    However, it is currently used in a separate MCU that supports a USB bootloader, and the MSP430 is updated via JTAG by opening the case.

    The MCU used in that model is MSP430F4783, which does not have a USB-compatible BSL as shown in the attached diagram.

    Going back to the topic, as Brandon said at the beginning, the MSP430 that supports BSL with USB does not require a bridge (MSP-BSL), and the MSP430

    that is a non-USB device supports UART and I2C. Does this mean that a bridge like MSP-BSL is required? If you use this method, there is no need to update

    from JTAG.

    Best Regards,

  • Hi Toshiharu,

    that is a non-USB device supports UART and I2C. Does this mean that a bridge like MSP-BSL is required? If you use this method, there is no need to update

    from JTAG.

    You are correct that a non-USB device would usually support UART or I2C. A bridge is not technically required, but for a device which supports UART-BSL, you need some way to issue UART commands to it. It is standard UART, so you could have whatever device is attached to your USB communicate with the part to be programmed over UART if you have this connection available. 

    In that case you would not need JTAG, just a way to invoke BSL, and some way to send the correct UART commands to the MSP430F4783.

    Best Regards,
    Brandon Fisher

  • Hi Brandon Fisher94

    Thank you again for your reply.

    I am grateful.

    It turns out that non-USB devices can also support UART or I2C, and a bridge is technically not necessary.

    I realized that I probably need to program a way to accept UART communication on the MSP430 side.

    I think you are saying that communication is possible by enabling MSP430 to connect to UART and setting it to accept UART.

    Non-USB compatible devices require some way to call BSL, and this is an issue that should be addressed.

    However, since the story about non-USB compatible devices is just an example, I understood that the MSP430F6769A, which is a USB compatible device,

    supports USB by default, so if the USB and MSO430F6769A are connected, the software can be updated from BSL.

    I will end this here, but if there are any mistakes, I would appreciate it if you could let me know, as it will not be completed for a while.

    Best Regards,

  • Hi Toshiharu,

    I will end this here, but if there are any mistakes, I would appreciate it if you could let me know, as it will not be completed for a while.

    It sounds like you have a good understanding of this now. I'll mark this thread as closed for now but feel free to make another post if you have any new questions. 

    Best Regards,
    Brandon Fisher

**Attention** This is a public forum