XGATE problems when migrating from XDP to XEP

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

XGATE problems when migrating from XDP to XEP

1,887 Views
Pedro_
Contributor III
Hi all ! (new to the forum looking for help)
 
I am having some problems while migrating code from an XDP to an XEP. Maybe you could give me a small push in the right direction.
 
I am migrating a small kernel in which the SPI and other data movement is done by the XGATE.
The software that was running on the XDP keeps triggering an xgate sw error interrupt on the XEP.
I am using Cosmic and Lauterbach (not much documentation around for cosmic & xep combined!)
 
The question is, application note AN3555 - Investigating XGATE Software Errors mentions a Part II which should cover the S12XGATEV3 ... But I haven't been able to find this Part II document.
Any idea where it could be?
 
Any suggestion on what I could have missed when adapting the code? 
(...like setting the xgate stack pointers xgis31, adding the new channels to vector table, etc)
 
Thanks!
Pedro
Labels (1)
0 Kudos
Reply
2 Replies

711 Views
Steve
NXP Employee
NXP Employee
Some thoughts:
. Have a look at AN3242 which lists the main differences between the families
. Are you using XGATE interrupts? Are the new stack pointer configuration registers initialised?
. Are you using the MPU to manage memory access? Is there a missing PD for XGATE?
. Use AN3555's techniques to find out where the error occurs - basically read the XGATE registers and find out where it stopped - in most cases you'll find a misaligned access is the cause. This can occur when you recomple
. If the problem is refusing to yield have a look at AN3458 which goes into the DBG module capabilities
0 Kudos
Reply

711 Views
Pedro_
Contributor III
"- Are you using the MPU to manage memory access? Is there a missing PD for XGATE?"
 
   Bingo! The descriptor was incorrectly set.
 
I can see the xgate executing a thread now.
 
Thanks Steve.
0 Kudos
Reply