DSPI EDMA not working with external flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DSPI EDMA not working with external flash

3,054件の閲覧回数
zahidul3
Contributor III

When sending data with DSPI EDMA from external flash memory address, the display does not work properly, probably a timing issue since QSPI access is slower than internal flash/RAM. 

I am using workaround where if I copy to a RAM buffer before sending to spi dma, then it works fine.

ラベル(1)
0 件の賞賛
返信
9 返答(返信)

3,007件の閲覧回数
zahidul3
Contributor III

Using the dspi_edma_b2b_transfer example as a base. If the masterXfer.txData address is from external QSPI memory, if doesn't transfer successfully.

0 件の賞賛
返信

2,979件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I review the example and work as expected, maybe you are missing something in your configuration.

Best regards,
Pavel

0 件の賞賛
返信

2,974件の閲覧回数
zahidul3
Contributor III

Hello,

Can you share your code snippet and what address are you using as the source of the data(txData)?

0 件の賞賛
返信

2,968件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, 

Sorry, I do not explain myself, I refer to the original example, the SPI is working as expected, I suggest reviewing your hardware.

Best regards,
Pavel

0 件の賞賛
返信

2,962件の閲覧回数
zahidul3
Contributor III

The hardware is wired correctly, we believe there might be a limitation in the EDMA SPI DMA drivers that it does not support reading from external QSPI flash taking into account extra delay for reading from external memory.

0 件の賞賛
返信

2,946件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

There are some devices from NXP that use QuadSPI module, so there are some app notes available that can be useful for QuadSPI development. 

Note: Some of the implementation details and features as described in the app notes will be different for K8x, so please use the K8x reference manual for full details.

AN4777, Using the QuadSPI Module on MPC564xS - Application Note (nxp.com)

Quad Serial Peripheral Interface (QuadSPI) Module Updates (nxp.com)

Using the QuadSPI Module on MPC56xxS (nxp.com)

Best regards,
Pavel

0 件の賞賛
返信

3,034件の閲覧回数
zahidul3
Contributor III

We are using the MK82FN256 MCU. 

0 件の賞賛
返信

3,010件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

thanks for the information, could you elaborate further on your issue or the steps to replay this issue?

Best regards,
Pavel

0 件の賞賛
返信

3,040件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

In order to understand, could you tell me what MCU you have?

Best regards,
Pavel

0 件の賞賛
返信