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.

TMS570LC4357: MibSPI1 read id(nor flash:S25FL512S)

Part Number: TMS570LC4357

Tool/software:

hello,Dear TI Team

I am using TMS570LC4357-EP to read the id of S25FL512S

I am using Multibuffer mode with number of buffers set to 6.

Following are my configurations:
1) Charlen = 8

2) CSHOLD Bit = SET

3) CSNR are set correctly.

4) All fields of SPIDELAY are set to 0.

5) Four pin configuration with CS, no enable pin

6) WDELAY field of SPI FMT register is set to 0

7)dataformat 3

Following are my code:

/* USER CODE BEGIN (0) */
#include "HL_mibspi.h"
#include "HL_sys_core.h"
/* USER CODE END */

/* Include Files */

#include "HL_sys_common.h"

/* USER CODE BEGIN (1) */
/* USER CODE END */

/** @fn void main(void)
*   @brief Application main function
*   @note This function is empty by default.
*
*   This function is called after startup.
*   The user can use this function to implement the application.
*/

/* USER CODE BEGIN (2) */
uint16_t txBuffer[6] = {0x90U, 0x00U, 0x00U, 0x00U, 0xFFU, 0xFFU}; // 命令+地址+哑数据
uint16_t rxBuffer[6] = {0};
uint32_t group=0;
/* USER CODE END */

int main(void)
{
/* USER CODE BEGIN (3) */
    _enable_IRQ_interrupt_();

    uint16 * data;

    mibspiInit();

        mibspiSetData(mibspiREG1, group, &txBuffer[0]);
        mibspiTransfer(mibspiREG1, group);                    //send data

        while (!mibspiIsTransferComplete(mibspiREG1, group)); // wait transfer complete
        mibspiGetData(mibspiREG1, group, &rxBuffer[0]);       // get data

        while(1);
/* USER CODE END */

    return 0;
}

The timing of the S25FL512S is shown in the following figure

The result:

The data sent by MibSPI1 can be received by the external USB to SPI board, but the board will not send any data, strangely enough, MibSPI1 can receive some data.

Data sent by MibSPI1, S25FL512S will not return ID, rxbuff is all FF

Please help analyze the cause of the problem

Methods I've tried:C2TDELAY 2