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

C++ interface with Cx51 simulator

Is it possible to connect an external C++ code (which does not run on 8051) with a 8051 C code ?
Is it possible to access the memory space of a 8051 C code, running on the simulator, from an external program?

Thanks,

Oren.

  • "Is it possible to connect an external C++ code (which does not run on 8051) with a 8051 C code ?"

    You cannot connect code.

    You can, of course, connect two processors via an interface of your choice; then define a suitable protocol; then write suitable software for each processor to perform the required actions.

    This is, after all, how a debugger works!

    If your 8051 has on-chip debug hardware and a JTAG interfase (eg, Triscend & Cygnal), you don't even need any software on the 8051.

    "Is it possible to access the memory space of a 8051 C code, running on the simulator, from an external program?"

    Keil provide various interfaces to uVision - I think AGSI is the one you want?
    There's also a DDE interface.

    There's Application Notes describing both.

  • Look at Keil's AGDI interface. They have a template API to get you started. You can access memory via the AGDI interface but it will impact your target run time.
    The AGDI allows the user to create a driver DLL to interface with the Keil debugger. I believe the AGDI is written with MS Visual C++. Somewhere I have read that it would be difficult but not impossible to use Borland C++ Builder.
    The AGSI allows the user to create a peripheral for simulation. Brad