P2020 DMA on L2 SRAM

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

P2020 DMA on L2 SRAM

Jump to solution
1,027 Views
pierre-antoinem
Contributor III

Hi,

 

When initiating a DMA transfer on the L2cache configured as an 512kb SRAM nothing happens.

Note that DMA transfers are working perfectly on the DDR and it is possible to write on the SRAM.

 

What is not working is DMA transfers (SRAM to DDR, DDR to SRAM and SRAM to SRAM).

 

I have DMAx_SRn[TE] = 1 (Transfer error : error condition during the DMA transfer)

I setted DMAx_MRn[EIE] but I'm not having any interrupt.

 

So if someone can help, it would be very kind.

 

 

I'll join my tcl config file.

Original Attachment has been moved to: P2020DS_init_core.tcl.zip

Labels (1)
0 Kudos
1 Solution
676 Views
LPP
NXP Employee
NXP Employee

I/O devices like DMA can access SRAM regions by marking transactions as snoopable (global).
Please, check if you set proper source/destination attribute in DMA control registers. It should be "Write, snoop local processor" or "Read, snoop local processor" for the SRAM side.

View solution in original post

0 Kudos
4 Replies
676 Views
pierre-antoinem
Contributor III

Hi, thanks helping.

@Scott : I have no ethernet or PCI configured to make these kind of tests.

@LPP : In fact my source/destination attributes are "Write/read without snooping local processor", i'll try with snoop local processor and report on how well it went.

0 Kudos
677 Views
LPP
NXP Employee
NXP Employee

I/O devices like DMA can access SRAM regions by marking transactions as snoopable (global).
Please, check if you set proper source/destination attribute in DMA control registers. It should be "Write, snoop local processor" or "Read, snoop local processor" for the SRAM side.

0 Kudos
676 Views
pierre-antoinem
Contributor III

Many thanks !

I didn't imagine this could be the problem.

0 Kudos
676 Views
scottwood
NXP Employee
NXP Employee

Do other types of DMA accesses to SRAM work (e.g. ethernet or PCI)?

0 Kudos