Access QSPI from M4 on iMX8-mini

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Access QSPI from M4 on iMX8-mini

跳至解决方案
3,266 次查看
jeff_hane
Contributor I

Hello, 

I have some tight scheduling requirements and I want to use the M4 running FreeRTOS to communicate with an FPGA via FlexQSPI.  The data will be received/generated by the A53s and shared with the M4 via RPMsg or the MU.

    I don't see a driver for driver in the generated SDK, but if linux setup interface to be memory mapped can I access it from the M4?  If yes, can I use SDMA to do a memory-to-memory transfer?   

thanks,

jeff

标签 (1)
标记 (3)
0 项奖励
1 解答
2,873 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Jeff

>if linux setup interface to be memory mapped can I access it from the M4?

yes

>can I use SDMA to do a memory-to-memory transfer?  

yes. Some sdma examples can be found in unit tests

mxc_sdma_test\test - imx-test - i.MX Driver Test Application Software 

Rpmsg driver is described in sect.2.8 Remote Processor Messaging

attached Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
4 回复数
2,874 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Jeff

>if linux setup interface to be memory mapped can I access it from the M4?

yes

>can I use SDMA to do a memory-to-memory transfer?  

yes. Some sdma examples can be found in unit tests

mxc_sdma_test\test - imx-test - i.MX Driver Test Application Software 

Rpmsg driver is described in sect.2.8 Remote Processor Messaging

attached Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
17 次查看
Eddy1
Contributor V

Hi,Excuse me, where can I get mxc_sdma_test? The previous link is no longer valid.

0 项奖励
2,873 次查看
jeff_hane
Contributor I

Thanks, I will build a kernel with the flexspi driver and write some code on for the M4 and try this out.  

The examples you pointed to are for linux but I need to the M4 handle the writes to the flexspi.  I can use rpmsg to let the M4 know there is data from the A53 but I want to use SDMA for some of my larger write(and reads) to other task can run in the rtos.  

jeff

0 项奖励
2,873 次查看
igorpadykov
NXP Employee
NXP Employee

seems MCUXpresso SDK for Cortex-M  i.MX 8M Mini

has sdma examples in ../driver_examples/sdma folder

Welcome | MCUXpresso SDK Builder 

Best regards
igor

0 项奖励