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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

773 次查看
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 项奖励
1 回复

570 次查看
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