AM625: spi nor flash driver

Part Number: AM625
Other Parts Discussed in Thread: SK-AM62-LP

Tool/software:

Hi:

My SDK version is 10.01.10.04.

I try to support a spi nor flash ds25m4cb  on my board and I add the driver.

When I test read, I use logic analyzer to get signal. For every block 0x10000, I can get more 36 bytes , 72 clk(freq is 20M).

The address mode is 4 bytes address.The read command is 0xEC.

We checked dma, it sends 0x10000 bytes to driver and drops the 36 bytes. But for next block,  when I read it, the offset will add 36, so I will lose the 36 bytes data.

Why does it send the more 36 bytes data?

  • Dear Tom.

    Would you please give more detail about the issue?

    1. which SDK? MCU_PLUS SDK or Linux SDK?

    2. which driver do you report the issue with? MCU_PLUS SDK or Linux SDK?

    3. which API and corresponding input parameters?

    4. please share code change you made for new flash if possible.

    5. please clarify the error signal, especially EN. which PIN is this EN? better to provide the wave captured by Logic analyzer with introduction.

    thanks a lot!

    yong

  • Hi Yong:

    flash_driver.zip

    Linux SDK.

    we use flash_torture to test. flash_torture -c 56 -r /dev/mtd1

    As show in pictures,  we read 0x10000.  range is 0x80000-0x8FFFF.

    When finish read, it still get 36 bytes.

  • Dear Tom

    thanks for more detail.

    there is no similar issue on SK-AM62-LP which equipped an OSPI flash.

    please help check in below ways.

    1. capture the wave on CS/CLK/D0/D1/... to do the comparison.

    2. please help dump OSPI0 controller register on your board and also SK-AM62-LP EVM for comparison.

    TRM:

    ...

    thanks a lot!

    yong