Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

The dma2.config read the first word in dma1_buffer, not the address of dma1_buffer and write it in a ALT3_READ_ADDR_TRIG.

To write the address of dma1_buffer, you need to create a 1-word array.

  # Array of 1 word containing the address of the buffer to read
  # This array is used latter in DMA
  dma1_addr_buffer = array('I', [addressof(dma1_buffer)])

  dma2.config(
      read=addressof(dma1_addr_buffer), # address of array containing the word to transfer
      write=CHx_AL3_READ_ADDR_TRIG[dma1.channel], # address of register to receive the transferred word
      count=1,
     ctrl=dma2_ctrl,

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@GitHubsSilverBullet
Comment options

@kc64
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by Josverl
Comment options

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