NOT RETURNING FROM SUB ROUTINE (PAGE SWITCHING)

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

NOT RETURNING FROM SUB ROUTINE (PAGE SWITCHING)

431 Views
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.

Labels (1)
0 Kudos
1 Reply

248 Views
kef
Specialist I

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

0 Kudos