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.

RTOS/AM5716: QSPI write/read fail issue while interfacing SPI_NOR Flash

Part Number: AM5716

Tool/software: TI-RTOS

Hi,

I'm porting TI-RTOS to our custom board but I've got SPI_NOR Flash write/read fail issue.

We could see that SPI_NOR flash is working (write/read operation) on idkAM571x.

We decided to use the same SPI_NOR flash but have to change the flash the small package type due to board form-factor (size).

   - idkAM571x - Cypress's  S25FL256S (SOIC 16-Lead Package)

   - our custom board - Cypress's  S25FL256S(WSON Package/8 pins)

We built the test project based on C:\ti\pdk_am57xx_1_0_12\packages\ti\drv\spi\test\qspi_flash

We have test SPI_NOR Flash on our custom board with QSPI but we got the fail result.

But it's working on idkAM571x.

We changed SPI NOR Flash on custom board to the same package type(SOIC 16-Lead Package) of idkAM571x. and  it's also working.

However, we have to use small package(WSON Package/8 pins) due to our customer requirements.

Looking at the data sheet, there is no difference between the two packages from a control (device driver) perspective.

  S25FL128S_S25FL256S_128_MBIT_16_MBYTE_25-775474.pdf (4.62MB)

Could you please share the information if you had similar issue(or used WSON Package)  ?

Best Regards,

JY

  • From a software perspective, it appears that the command and data protocol and the addressing appears to be identical so there should be no difference from the way the flash is programmed from QSPI driver perspective. Can you please indicate what part of the QSPI flash tst fails. Can you read device ID? Does the flash read API return any error ?

    I have looped in a colleague to comment from QSPI IP perspective or from board design perspective if there are any differences that can impact your setup.

    Regards,
    Rahul
  • Hi Rahul,

    Thanks for your reply.

    We are still struggling to resolve this issue.  But no progress at all.
    As mentioned before NOR flash is as same as of idkAM571x except package  type.
    The reading of Manufacturer ID and device ID is OK
    But the write & read tests are failed during verifying data.  The reading data are always "0xFFFFFFEF" whatever writing.
    If changed NOR Flash to original type by jumper wiring, it works well.  write & read tests are OK. So HW seems to be OK.
    What make issue?
    I'd like to know if there's anything else I need to check or debugging.
    FYI.
    NOR Flash on idkAM571x - S25FL256SAGMFI001
    NOR Flash we use             - S25FL256SAGNFI001
    Best Regards,
    JY
  • Hi JY,

    How many boards have you built?  Do they all fail exactly the same?

    Below are a couple suggestions of things to check:

    1. Does reducing the QSPI clock frequency have any impact on the write/read test?

    2. Since you were able to wire in the QSPI from the IDK, can you also try wiring in an EVM from the QSPI manufacturer?    

    Also, have you asked the QSPI manufacturer for debug recommendations?

    Regards,

    Melissa

  • Hi JY,

    I haven't heard from you in a while. Any updates about this issue?

    Regards,
    Melissa
  • Hi Melissa,

    We are still struggling ,  We replaced the NOR Flash on EVM with the same package one we have the issue on our custom board.

    After that, we have got same issue on EVM.

    We have queried the issue to the vendor of NOR flash.

    BR

    JY