Shared memory and eDMA-EQADC dependency ??

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

Shared memory and eDMA-EQADC dependency ??

621 Views
rahulmankumbare
Contributor II

Hi,

We are using S32 DS with MPC5777C.

We have 22 analog channels on EQADC_A and 7 channels on EQADC_B.

We are using eDMA for EQADC in continuous scan using eMIOS trigger.

We also have shared memory.

We want to share the variables in both Core 0 and Core 1.

When we try eDMA with EQADC we get all conversions of 22 plus 7 channels properly.

When we use shared memory  we are able to share multiple variables properly.

Now when we integrate the  eDMA with EQADC code with shared memory, EQADC results gets swapped.

So is there any special precaution that we need to take while using eDMA with EQADC and shared memory in sigle project.

Please suggest.

Thanks.

Rahul

2 Replies

493 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

That's really interesting issue.

Do you have enable enabled caches for that area. Have you tried it turn it off (i.e. set to cache inhibited?

493 Views
rahulmankumbare
Contributor II

Hi,

We have resolved the issue.

We were making mistake in linker  file while assigning shared memory section base address.

Thanks for reply.

Rahul.