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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

821件の閲覧回数
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 返信

618件の閲覧回数
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