Hi, I've been following the example in App Note 154 to develop a simulator DLL. The result works fine with "simple and small" (un-banked) target firmware (uP is SDA5550). The problem is, when I have to use code banking in the target firmware, I cannot get my AGSI DLL to work with banking. Keil debugger always show "Access Violation" on the first jumping (LJMP) to other bank during initialization (even before going to main() ). I checked the SFR PC always be in "C:xxxx", it never change to "B0:xxxx" or "B1:xxxx" as it should be. However, the banked firmware works fine on a real system (with real uP onboard) without AGSI DLL. Is there any extra banking stuff I need to handle in my AGSI DLL during initialization? Please advice. Thanks!
Hi, I tried to use AgsiExecuteCommand("$ = xxxx"); to change PC. But it doesn't work in the timer function OpecodeStart(). I cannot change PC in timer function, however, other debug command is ok... Is there anything wrong?? Example 1: this is ok:
static void OpecodeStart(void) { ...... AgsiExecuteCommand("DIR VTREG"); // THIS IS OK Agsi.SetTimer(OpecodeTimer, 1); }
static void OpecodeStart(void) { ...... AgsiExecuteCommand("$ = C:0000"); // this doesn't work, why??? Agsi.SetTimer(OpecodeTimer, 1); }
You can use:
AgsiExecuteCommand("G XXXX");