I am trying to debug helloworld.c for the DS80c400 Tini. I configured the memory as per App613. Using CPU-DLL-c390. I have provided a .INI script which sets the PC to 0x400000 and I am single stepping through the startup400 code. When I reach the Push BFLAGS and Pop BFLAGS I receive the following error in the debugger:
*** error 65: access violation at X:0x400001 : no 'write' permission
*** error 65: access violation at X:0x400001 : no 'read' permission
Obviously, this is not where I expected the stack to be.
Any ideas?