Nagaraju Boya

NOT RETURNING FROM SUB ROUTINE (PAGE SWITCHING)

Discussion created by Nagaraju Boya on Feb 7, 2012
Latest reply on Feb 7, 2012 by kef

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.

Outcomes