XGATE problems when migrating from XDP to XEP

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

XGATE problems when migrating from XDP to XEP

2,238 次查看
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
标签 (1)
0 项奖励
回复
2 回复数

1,062 次查看
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 项奖励
回复

1,062 次查看
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 项奖励
回复