How can Cortext-M4 of imx6sx access FPGA by eim

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

How can Cortext-M4 of imx6sx access FPGA by eim

1,209 Views
jingyangxie
Contributor V

Hi,all

   I have a imx6sx-sdb board,how can the M4 access FPGA by EIM ?

Labels (2)
10 Replies

836 Views
jingyangxie
Contributor V

the problem has been solved!

0 Kudos

836 Views
igorpadykov
NXP Employee
NXP Employee

Hi jingyang

m4 can use eim in the same manner as a9, only

from m4 side module addresses can be different, use Table 2-2. CM4

memory map i.MX6SX Reference Manual
http://www.nxp.com/docs/en/reference-manual/IMX6SXRM.pdf

dts file with eim

linux-imx.git - i.MX Linux Kernel 

modules which may conflict with eim should be disabled in a9 dts

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

0 Kudos

836 Views
jingyangxie
Contributor V

Hi,igor

    I want both a9 and M4 can access fpga,can this do?

0 Kudos

836 Views
igorpadykov
NXP Employee
NXP Employee

yes it is possible, please check permissions defined in

rdc, described in Chapter 52 Resource Domain Controller (RDC)

i.MX6SX Reference Manual.

Best regards
igor

0 Kudos

836 Views
jingyangxie
Contributor V

Hi,igor

    what the address I can use to access EIM on M4,when on A9,I can use mmap() to map the 0x50000000(EIM addr) to 0(virtual addr),how can this do on M4?

0 Kudos

836 Views
igorpadykov
NXP Employee
NXP Employee

one can look at m4 qspi examples in i.MX7D FreeRTOS, for eim this

should be the same only with different addresses

Board Support Packages (3)
FreeRTOS_iMX7D_1.0.1_LINUX
https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applicatio...

Best regards
igor

0 Kudos

836 Views
jingyangxie
Contributor V

Hi,igor

   does this mean that the EIM should be enabled in uboot?the qspi examples in i.MX7D FreeRTOS say that " To start this demo, the QSPI Flash in U-Boot should be enabled." if so ,I should configure EIM pins and clock in uboot? that's very strange,I think M4 can access EIM not only in uboot system startup,is this right?

0 Kudos

836 Views
igorpadykov
NXP Employee
NXP Employee

you are right eim can be configured later, in linux.

Best regards
igor

0 Kudos

836 Views
jingyangxie
Contributor V

Hi,igor

I'm a little confused. Is there any specific solution for M4 accessing EIM? For example, like A9, first configuring the pin function, then configuring the clock, configuring control registers (EIM_CSnGCR1, EIM_CSnGCR2, EIM_CSnRCR1...), and finally making memory mapping (mmap) to access EIM.

17702710280@163.com

836 Views
jingyangxie
Contributor V

Hi,igor

    I have read the 6sx RM,I have some questions:

pastedImage_1.png

what does this mean? and does it have anything to do with EIM memory (0x50000000-0x57FFFFFF)?

If I want use function(RDC_SetMrAccess(RDC_Type * base, uint32_t mr, uint32_t startAddr, uint32_t endAddr,
uint8_t perm, bool enable, bool lock) on M4 to access EIM(FPGA),how can I choose the startAddr and endAddr?

0 Kudos