RAM memory corruption on using Xgate for CAN

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

RAM memory corruption on using Xgate for CAN

Jump to solution
603 Views
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.

Labels (1)
0 Kudos
1 Solution
383 Views
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

View solution in original post

1 Reply
384 Views
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