RAM memory corruption on using Xgate for CAN

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

RAM memory corruption on using Xgate for CAN

ソリューションへジャンプ
1,180件の閲覧回数
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 解決策
960件の閲覧回数
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 返信
961件の閲覧回数
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