Using Vybrid (VF65GS10) eDMA ‘s Scatter/gather feature

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

Using Vybrid (VF65GS10) eDMA ‘s Scatter/gather feature

690 Views
riz1231
Contributor I

Hello,

We have tried enabling eDMA scatter/gather operation but it doesn’t seem to work properly. We do the following configurations:

  1. Setup descriptor in external SDRAM (0x8000 0000) in exactly the same way as in eDMA regisers. I mean same offsets are assumed. 32-bit aligned memory is used.
  2. Enable scatter/gather operation by setting TCDn_CSR[ESG] = 1
  3. Store memory address of descriptor setup in step.1 in the current descriptor’s DMAx_TCDn_DLASTSGA register and start the transfer.

However, only the first descriptor setup in eDMA registers is processed and after the first major loop completes, channel descriptor is not reloaded properly from memory (strange garbage values are loaded into registers) and nothing happens afterwards (no interrupts, transfer etc.).

Please help us if there is any solution to this problem.

Thanks,

Rizwan

0 Kudos
1 Reply

487 Views
ioseph_martinez
NXP Employee
NXP Employee

Hello Rizwan,

have you checked DMAx_ES? is pretty useful indicating what is the probable cause of the error.

Have you tried using OCRAM to store the scatter gatter data instead of SDRAM? just want to make sure you external memory is properly configured and the garbage is not because the data is being read wrongly from the memory controller.

Best Regards,

Ioseph