NOT RETURNING FROM SUB ROUTINE (PAGE SWITCHING)

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

NOT RETURNING FROM SUB ROUTINE (PAGE SWITCHING)

947 次查看
embitel
Contributor I

Hello everyone,

 

I am using code warrior 5.1 and MC9S12C128.PE MULTILINK DEBUGGER.

 

 

My application calls as subroutine which is in assembly file (page 0 /ROM C000) FROM PAGE 38.

 

When i do single step PPAGE is updated with 0 and after completion of subroutine the control is not coming back to PAGE 38(PAGE SWITCING).

I would get ILLEGAL_BP error.

i have enough stack space.

 

Can someone tell what would be the problem.

 

Thanks,

Embitel.

标签 (1)
0 项奖励
回复
1 回复

764 次查看
kef
Specialist I

Does your asm routine use RTC instruction to return? Or indeed RTS?

0 项奖励
回复