This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AgsiSetWatchOnMemory( ) in AGSI doesn't work

Hi, now i m working on C251 Debugger , using AGSI interface to realize some Peripheral.
In AgsiEntry function, i set watch on memory, range 0x1000~0x1fff, run() is a callback function when memorys are writed

void run(void)
{ Agsi.Message("run");
} ........ AGSIEXPORT AgsiEntry(DWORD nCode, void *vp)
{ switch (nCode) { case ... case AGSI_INIT: { Agsi.SetWatchOnMemory(0x1000, 0x10ff, run, AGSIREADWRITE); break; } }
}

then i open proj file and worte a test program which write 0x1000 in loop, compiled and start debug session, but there is no message "run" in command window. It means AgsiSetWatchOnMemory doesn't work.
Anybody please tell me why this happen and how to Solve the problem .
Thank you very much

0