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.

MSP430FR5949: SPI error in transmitting the data

Part Number: MSP430FR5949


Hello,

I am using a SPI interfaced NAND Flash to store my per second result data by RTC interrupt for every second. Storing of data is successfully done. But a irregular error event has been found in SPI bus. For particularly one minute the logged  data(60sec data) in NAND Flash is missing for uneven time. Sometimes it will occur continuously for two to four hours. Sometimes the error is not occurring it store the data smoothly without loss. 

The same result data is transmitted Through UART by using a timer delay for every second.

Is there anything conflicting with SPI bus, What will be the error here? and what are the ways to debug this?

  • Hi Siv M,

    irregular error event has been found in SPI bus

    Have you seen bad behavior on the SPI bus, or are you assuming that something with SPI went wrong because the data is missing from NAND flash?

    It sounds like there are two operations on a one second interval:

    1. RTC interrupt -> SPI writes to NAND flash
    2. Timer interrupt -> UART transmission

    Is this a correct summary? I wonder if the RTC and Timer interrupts are conflicting. If they both occur on the one second interval, maybe you are masking one or the other somehow. Can you use the same interrupt to trigger both the UART and SPI transfer?

    If possible please share your ISR.

    Regards,

    Evan

**Attention** This is a public forum