RAM memory corruption on using Xgate for CAN

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

RAM memory corruption on using Xgate for CAN

跳至解决方案
1,174 次查看
subashr
Contributor III

I have a CAN driver working in s12 core. the objective is to route the CAN to Xgate to reduce the load on s12x. For this, I have moved the can isr to the xgate file and updated the vector tables of the core and Xgate accordingly. Then  moved the variables used in the can driver(data buffer, buffer cnt) to shared memory region and exported to the xgate file(for use in isr).

 

On execution, I do get the messages sent from the application, but along with the desired messages, I get junk messages coming out of CAN. The transmit buffer register area of CAN is written randomly and these values are sent out.

 

Currently there is no semaphore lock used between Xgate and s12x. Already ADC and ICU channels run in Xgate and is working fine.

Where should I start looking to resolve this issue.

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
954 次查看
lama
NXP TechSupport
NXP TechSupport

Today, I provided an extended answer for a question related to an XGATE. The answer provides answer also to you:

Data sharing between S12x and Xgate

best regards,

Ladislav

在原帖中查看解决方案

1 回复
955 次查看
lama
NXP TechSupport
NXP TechSupport

Today, I provided an extended answer for a question related to an XGATE. The answer provides answer also to you:

Data sharing between S12x and Xgate

best regards,

Ladislav