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.

MSP430FR5989: Is use of the DMA possible for SPI-to-SPI bridge?

Part Number: MSP430FR5989

Hi everybody,

I am trying to get clarity on the possibility of only using the DMA to receive data on SPI-A (eusciA) and transmit it on SPI-B(eusciB) without the need of storing the data on the msp430.

My objective is to write a "re-flash" procedure for another SoC in my system. The basic idea is to re-flash the boot flash of the SoC via SPI once the msp430 does not receive a "proper" heartbeat anymore. Such an image is stored on another flash attached to a separate SPI connection of the msp430.  Basically, I want to bridge SPI-to-SPI via DMA.

I couldn't find any information in the datasheet if such an SPI-to-SPI bridge is possible through DMA.

I would appreciate it if anyone who knows could advice,

Thanks,

fhof

  • I haven't tried this, but I expect it would work. As I understand it you want a slave SPI (incoming) to feed a master SPI (outgoing), and maybe the master responses to be sent out over the slave.

    In each direction, the DMA would trigger off the source RXIFG and copy the source RXBUF to the sink TXBUF. The master SPI (outgoing) would have to be clocked at least as fast as the fastest slave SPI (incoming) SCK that its master might use. Also keep in mind that DMA transfers aren't instantaneous [Ref User Guide (SLAU367P) Sec 11.2.7]. so budget for that. 

**Attention** This is a public forum