Xgate debugging - software error interrupt

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

Xgate debugging - software error interrupt

跳至解决方案
2,042 次查看
nhtshot
Contributor II

I'm having the dreaded software error interrupt on some xgate code. I'm using the MC9s12XDP512 part and codewarrior with all the newest stuff applied.

 

I've managed to assembly step it to the JAL that's throwing the exception.

 

E089d0 LDL R6, #235

E089d2 ORH R6, #128

E089d4 JAL R6

 

At this point, R6 = 80EB which is an odd number.

 

I know what function this is jumping to, but I haven't any clue how I'm supposed to fix this.

 

Why is the compiler putting a function on an odd boundary? Or am I completely missing something here?

 

Should I have some additional options in the compiler settings or some pragmas in that file?

 

I've tried #pragma options align=2 with no success.

标签 (1)
0 项奖励
回复
1 解答
1,371 次查看
nhtshot
Contributor II

OK.. I really feel stupid now.

 

#include "xgate.h"

 

 

No more software error interrupt, no more pointers to bad places.

 

That include has to be in every .cxgate file.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,371 次查看
nhtshot
Contributor II

E080EB also appears to be within the Page_E0_0, XGATE sees registers here, which is obviously bad.

 

 

0 项奖励
回复
1,372 次查看
nhtshot
Contributor II

OK.. I really feel stupid now.

 

#include "xgate.h"

 

 

No more software error interrupt, no more pointers to bad places.

 

That include has to be in every .cxgate file.

0 项奖励
回复