Skip to content
Discussion options

You must be logged in to vote

I have to correct myself:

src = array.array("I",[13061]) # The value to be writen by the DMA
src_addr = uctypes.addressof(src)

seems correct, but

dst = array.array("I",[1073823748]) # An array containing the address where the DMA should write to, that's where I think things goes wrong
dst_addr = uctypes.addressof(dst)

indeed is wrong, as you setup the DMA to write into that array then. so that it becomes array("I",[13061]).
Instead
dst = 1073823748 would be correct here.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rkompass
Comment options

Answer selected by k057
Comment options

You must be logged in to vote
0 replies
Comment options

Josverl
Aug 12, 2023
Collaborator Sponsor

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants