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.

program MSP430f2274 using SPI

Other Parts Discussed in Thread: OMAP5912

Hello everyone,

I have a MSP430 connected to OMAP5912 through SPI port, I would like to program the MSP using SPI (omap).

I success to program MSP using UART (BSL) but I want to program using SPI also.

Where I can find code for this? I didn't find in TI site.

Thank you

  • You didn't program the MSP using UART. At least not using an MSP hardware UART.

    Programming of the MSP is either done by JTAG (hardware) or through a software running in the MSP. By default, there is a software (the BSL) which simulates a serial port on some I/O pins (what you used). This software is stored in an area you cannot overwrite, so it is always there.

    On part of the 5x series (e.g. 54xxA), you can replace this BSL code with your own. And for the devices with USB, there is a BSL version which supports software download through USB. It does, however, not support any other hardware module such as SPI. But that's all.

    If you want to use SPI, you'll have to write your own software which reads the new firmware through SPI and then overwrites itself. And this is a tricky task.
    Writing a working SPI slave isn't easy (while SPI master is the easiest of all) and writing code that replaces itself without the risk of leaving the device in an inoperable state isn't easy too and requires some programming skills. There is an uart-based example (flash monitor) at the Ti website which shows the basics.

**Attention** This is a public forum