mdn, A full-Emulator with a trace can be a big help in this case, to show you what is actually executed by the CPU, and where the program is going instead of going to the correct call-back function. Assuming you don't have a full-emulator, why don't you post the actual assembly code that you use to call the Call-back functions (including the content of the relevant memory and registers for the function call), and somebody on the list can possibly spot where your code is failing. Hope this helps, Doron Nohau Corporation HC12 In-Circuit Emulators www.nohau.com/emul12pc.html At 09:24 AM 9/16/2003 +0000, you wrote: >Hi All, > >We are using DP256(HC12) target environment for our project and >facing problems when we try to use function pointers. We are using >an array of function pointers for implementing callback functions. > >The problem is, when we try to call the function using the array we >get an "illigal breakpoint" error and program stops. We made sure >that all our code is placed in NON_BANKED memory and also the .lst >file shows that function call is replaced by assembly instruction >CALL. > >We would like to know whether there is any restriction for using >function pointers in this target environment or is there any special >care needs to be taken. > >Any help in this regard is highly appreciated. > >Warm Regards >mdn |