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: MSP432E401Y

Part Number: MSP432E401Y

Hi, 

My project uses MSP432E401Y. I am looking for some sample code to support SPI interface using uDMA. Could anyone help?

Thanks,

Qiuping Li.

  • Hello Qiuping

    There is no ready to use examples for the SPI with DMA. However you can describe the requirement for the SPI+DMA case and we could help you with an existing example of DMA to be used with SPI,
  • Hi, Amit

    I found an example in CCS: udma_demo_MSP_EXP432E401Y_nortos_ccs. This example uses uDMA for UART interface. I am thinking of perhaps changing this sample code from UART to SPI.

    I tried to run the sample code as it is initially, I didn't see the 10 line stats  being printed out as described in README.

    I then changed UART1 to UART3, then I saw 10 line stats being printed out. But "UART Transfers" column always show "0 Bytes/Sec". Somehow, UART ISR routines were not invoked.

    I have two questions here:

    1. Is this a good example to be based and modified to support SPI?

    2. Why the code is not working as expected, i.e. UART interface doesn't work as expected. I even tried to add a wire connecting UART Tx and Rx and it still didn't quite work.

    Thanks,

    Qiuping

  • Hello Qiuping,

    I think I see the issue with the original code. Please do a search and replace of the following line

    UART1->DR to 0x4000D000. After that the code works. I am trying to figure out why the UART1->DR does not function.

    Basically, please put the absolute address of the UART Data Register for the moment if you want to do UART data transfer.
  • Hello Qiuping,

    The correct fix is to replace (void *)(UART1->DR) with (void *)(&UART1->DR)

    I have submitted the fix for the next release.
  • Hi, Amit

    It works now with the fix you suggested.

    Thanks,

    Qiuping

**Attention** This is a public forum