imx6q eim bus connect fpga, use mmap to write and read

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

imx6q eim bus connect fpga, use mmap to write and read

609 Views
nx5216
Contributor I
we map eim bus address using mmap, fpga.driver.c:
Snipaste_2023-03-04_19-15-45.png
then we define an buffer to test in application program,fpga_app.c:
Snipaste_2023-03-04_19-15-40.png
here only one write operation was performed,but signal Tap shows that multiple write operations have been performed.Why does this happen?

Snipaste_2023-03-04_19-13-12.png

0 Kudos
Reply
3 Replies

570 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @nx5216,

I hope you are doing well.

I have a few queries to ask.


1)Have you made sure that this map_base is not accessed from some other location at the time of execution, because it could be possible that it is being written at a time?


2)Can you please check which mode of operation is being used, A burst mode is used for accessing external devices, which support synchronous write type of access (PSRAM protocol). In this mode, after address assertion, a burst of sequential data can be written to the external device. Access may be delayed according to WAIT_B signal assertion (signal from the memory device) before the first piece of data arrived at the external device.

Please share the observation.

Thanks & Regards.

0 Kudos
Reply

561 Views
nx5216
Contributor I
I am sure that the map_base is not accessed from some other location, and asynchronous write mode is been used
0 Kudos
Reply

566 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @nx5216,

I hope you are doing well.

Waiting for your response.

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply