I am using C8051f120 mcu with code banking. My code size is around 90K. In my main function(which is in code bank common), I call a function residing in code bank 3. While debugging, when I step into that function (in code bank 3), debugger gives the warning "Invalid code range) and while exiting this function, the mcu gets reset. Can anyone help me as in why this warning is coming and how can I overcome this issue.
a (fair?) guess would be that, since the '120 'banks' different from the "Keil standard" there is a glitch.
Since you are banking you must have a paid copy, contact Keil AND SILabs support (mcutools@SILabs.com) . BTW I would use an ARM instead of banking, I am, however, quite happy with the '51 when it stays inside it's natural habitat.
Erik
It MAY also be due the VERY common case of SILabs and KEIL being out of synch. It seems that when either comes out with a new release, you have to wait/hunt for a release of the other that is in synch.
have you tried using SILabs IDE as a stanalone?