[4M] Reconfigure DMA on_the_fly

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

cross mob
cadi_1014291
Level 6
Level 6
25 likes received 10 likes received 10 likes given

Hi,

   

I'm still making little projects to get familiar with the DMA engine on PSoC4M (and PSoC4L).

   

This project https://github.com/C47D/4M_DMAed_SPI tries to use DMA to send and read data via SPI, i did a function to change the source, destination and number of bytes to be transferred, but i'm getting troubles with it, i think i'm not waiting enough time before exiting the custom function, or maybe i'm missing DMA parameters that needs configuration.

   

 

   

Has somebody tried to change DMA parameters on the fly?

   

I spend some time searching on the forum and there are just a few topics about this.

   

 

   

Thanks in advance

   

Carlos

   

 

   

PD: the project on the git repo is done on Creator 4.0 and CY8CKIT043 kit as a target, v2 project is the current one :).

0 Likes
2 Replies
lock attach
Attachments are accessible only for community members.
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

The attached example project have details on this. This is code example available with the CY8CKIT-046. If you check the function void ProcessAudioIn(void), you can see that DMA registers are getting modified.

   

Thanks,

   

Hima

0 Likes
cadi_1014291
Level 6
Level 6
25 likes received 10 likes received 10 likes given

Hi HIMA,

   

I will check the project, so far it's being really helpful, full of comments 🙂

   

 

   

Thanks

   

Carlos

0 Likes