DMA transfer to a gpio data register

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

I'm playing around with a psoc4m pioneer kit, and I'm trying to initiate a dma transfer from a buffer to a gpio port data register (CYREG_GPIO_PRT0_DR). I couldn't find any documentation specifically saying this won't work, but I haven't had any luck so far. If I'm not using DMA, I can write directly to the port register no problem. Any thoughts? Thanks.

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Thanks. I think I actually figured it out on my own after playing around for a bit. It looks like I need to configure the transfer for 32 bits, and then the top 24 bits get dropped. Weird, but I guess that's how it works when dma-ing directly into gpio registers? 

   

Sample code is attached if anyone wants to take a look or has any thoughts.

0 Likes