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.

TM4C1290NCPDT: SPI read hangs

Part Number: TM4C1290NCPDT

Hi ,

We are trying to read from the SPI flash continuosly for one of our application. But during this process the SPI flash hangs. Below is the step we are following,

//
// Assert the chip select.
//
ROM_GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_3, 0);

//
// Read the requested data.
//
ROM_SPIFlashRead(SSI0_BASE, ui32Addr, pui8Data, ui32Count);

//
// De-assert the chip select.
//
ROM_GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_3, GPIO_PIN_3);

Please let us debug this issue.

Thank you,

Deepanraj.A

  • Hi,

      Does it make a difference on the ui32Count size? What if you use a smaller ui32Count? Perhaps start with 1 and then increase the size until you see the problem. I will suggest two things for debugging. First, don't use the ROM_SPIFlashRead() but rather the SPIFlashRead() so you can debug the code more easily. Second, use the scope to capture the communication.