Hello! I have a project based on MC9S08LL64. As it is quite big and uses all the flash available (64KB), I had to use the Banked Memory Model. My code also makes large use of callback functions (functions that are called after some event occur). I noticed a strange behaviour: sometimes, a callback function is being called (I put some debug messages that are shown at the serial port) but its code is not executed (as if the 'jump' was not performed correctly). However, if I try to rearrange the order at which the source code modules are linked, sometimes it works.
This microprocessor is quite buggy. If I put a breakpoint inside the paging window, the code can not run. So, I wonder if the problem I described above has anything to do with the banked memory model or if the compiler is generating wrong code.
Does anyone have any idea of what might be causing the problem?
Thanks in advance!