Access QSPI from M4 on iMX8-mini

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access QSPI from M4 on iMX8-mini

Jump to solution
3,921 Views
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

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
3,528 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
4 Replies
3,529 Views
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 Kudos
Reply
672 Views
Eddy1
Contributor V

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

0 Kudos
Reply
3,528 Views
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 Kudos
Reply
3,528 Views
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 Kudos
Reply