LPC1788 SDRAM GPDMA

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1788 SDRAM GPDMA

2,820 Views
rafaelzingler
Contributor I

Hi,

I'm trying to use GPDMA M2M transfers using an external SDRAM memory connected to an LPC1788. The idea behind this is to automate copy of data between 2 different buffers (front buffer and back buffer), in a video application.  There must be transferred 768000 bytes from one buffer to the other every time the apllication does the "buffer switching". Has anyone did it already? Is it possible? Could anyone post an example on how to configure the hardware? Should I use linked lists to enable transfers of more data?

Thanks in advance.

Labels (1)
0 Kudos
3 Replies

1,021 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Rafael Zingler,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
According to your statement, it seems that you want to implement the scatter/gather feature of the GPDMA, is it right?

pastedImage_1.png

pastedImage_2.png

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,021 Views
rafaelzingler
Contributor I

Hi.

I'm really not sure about the need of the scatter/gather feature. I have 2

memory areas, each one with 768,000 bytes. The 768,000 bytes in each area

are contiguous. Both areas reside in external SDRAM, and I would like to

use the GPDMA with M2M configuration to copy data from one area to the

other. So, the GPDMA needs to transfer 768,000 bytes each time. On each

pair of transfers, in the first one buffer A need to be the source and

buffer B need to be the destination. In the second one buffer A is the

destination and buffer B is the source.

Thank you very much!!

Em seg, 29 de abr de 2019 23:12, jeremyzhou <admin@community.nxp.com>

escreveu:

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: LPC1788 SDRAM GPDMA

reply from jeremyzhou

<https://community.nxp.com/people/jeremyzhou?et=watches.email.thread> in *LPC

Microcontrollers* - View the full discussion

<https://community.nxp.com/message/1145386?commentID=1145386&et=watches.email.thread#comment-1145386>

0 Kudos

1,021 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Rafael Zingler,

Thanks for your reply.
In my opinion, you can give a try to use the scatter/gather feature to make it.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos