Shared memory and eDMA-EQADC dependency ??

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

Shared memory and eDMA-EQADC dependency ??

1,503 次查看
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 回复数

1,375 次查看
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?

1,375 次查看
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.