Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When transferring a small amount of data, the DMA data will be wrong #159

Open
byheng opened this issue Nov 6, 2024 · 0 comments
Open

Comments

@byheng
Copy link

byheng commented Nov 6, 2024

Problem

When I was testing axidma_transfer.c, I prepared my test file 1.txt, which contained very little content, only two words "hello world". After I ran the command ./axidma_transfer 1.txt 2.txt, I used the command cat 2.txt to view the file content of 2.txt, and the result was blank.

Then I observed the data of M_AXIS_MM2S and S_AXIS_S2MM of dma in Syetem ila, and then I found that the data of TDATA did not correspond to the content of the sent file 1.txt at all.

But when I use axidma_transfer.c as the input file,and ran the command ./axidma_transfer axidma_transfer.c 2.txt the data of TDADA in DMA is correctly corresponding to axidma_transfer.c

my block design

image

waveform of test ./axidma_transfer 1.txt 2.txt, and only "hello world" in 1.txt

image
image

waveform of test ./axidma_transfer axidma_transfer.c 2.txt

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant