Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Proteus + C program debuging

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
program debuging

Hi,

May i know the Proteus software can synchronize simulate my C programming code and the circuity?

If the software can show us the code step while playing the simulation will be easy for us to do debug.

If this software have this feature. Please show me the way.

Thank You.
 

proteus 6.9 sp5

unfortunately, i don't think so
 

proteus + c program debuging

You mean doing Keil C51 source level debugging with Proteus? Yes it can be done, check the attached file for detail information.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
proteus c programs

Hi,

Im using Proteus6.9Sp5 and Keil uVision3. I cant find this VDM51.dll in my proteus. And I also have Proteus7.x but it have VDM51.dll. I try to copy this .dll file to

C:\Program Files\Labcenter Electronics\Proteus 6 Professional\MODELS
and
C:\Keil\C51\BIN

then add TDRV3=BIN\VDM51.DLL (“Proteus VSM Monitor-51 Driver”) in TOOL.INI

[C51]
BOOK0=HLP\RELEASE_NOTES.HTM("Release Notes",GEN)
BOOK1=HLP\GS51.PDF("uVision2 Getting Started",GEN)
BOOK2=HLP\C51.PDF("C51 User's Guide",GEN)
BOOK3=HLP\C51LIB.CHM("C51 Library Functions",C)
BOOK4=HLP\A51.PDF("Assembler/Utilities",GEN)
BOOK5=HLP\TR51.PDF("RTX51 Tiny User's Guide",GEN)
BOOK6=HLP\DBG51.CHM("uVision2 Debug Commands",GEN)
BOOK7=ISD51\ISD51.HTM("ISD51 In System Debugger",GEN)
TDRV0=BIN\MON51.DLL ("Keil Monitor-51 Driver")
TDRV1=BIN\ISD51.DLL ("Keil ISD51 In-System Debugger")
TDRV2=BIN\TE5_UV2.DLL ("Triscend E5 Driver")
TDRV3=BIN\VDM51.DLL (“Proteus VSM Monitor-51 Driver”)
RTOS1=RTXTINY.DLL ("RTX-51 Tiny")
...
..

and then do the setting in Keil:
‘Target 1’ -> 'Debug' tab -> but then i can't found this Proteus VSM Monitor-51 Driver in combo-box.

Do you know why? Is it i miss the step?

Please help me..

Thank You.
 

c in proteus

Your TOOL.INI setting is OK, i doubt VDM52.DLL from Proteus 7.0 isn't compatible. Try the VDM51.DLL I attached.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
vdm52.dll

Hi,

It still not work. I have done all the step then open the Keil and do the last setting. Bellow i'm showing the Debug setting.

Thank You.
 

vsm keil folder

Copy VDM51.DLL to c:\Keil\C51\bin too
 
  • Like
Reactions: Gohan

    Help

    Points: 2
    Helpful Answer Positive Rating

    Gohan

    Points: 2
    Helpful Answer Positive Rating
proteus c programming

Hi,

Yes, i pasted it into also. Still the same.

I wondering this 3 dll can work (MON51.DLL, ISD51.DLL, TE5_UV2.DLL) but the VDM51.DLL can't. By rite, Keil compiler should be able to accept any vdm51.dll from Protues Xversion.

Thank You.
 

keil monitor-51 driver

Thank Buddy.

Now i can get the "Proteus VSM Simulator" in Keil -> Target -> Debug. Which mean i can do link this two simulator together.

But i still don't know how to simulate it. I try to do a simple LED simulation testing.

Code:
#include <reg52.h>

sbit LED1 = P1^0;
sbit Sw   = P1^1;

void main()
{
	while(1)
	{
		LED1 = 0;

		if(Sw==0) {LED1 = 1;}	 	
	}
}

How do i simulate it?

Thank You.
 

howto proteus

You have to make a board for your project first.
 

program debuging

Hi,

nomad13 said:
You have to make a board for your project first.

Yes, i already ready a board.

Please guide me in step-by-step.

Thank.
 

how to desinstall uvision

Help,
Your VSM.DSN file is created with Proteus 6.9, it can't be open by Proteus 6.7!
Beside it, you have to set DEBUG - Use Remote Debug Monitor on VSM.DSN

Inside the attachment, I send back your file after some modification, and another files ready to demonstrate C level single step debugging with Keil µVision +Proteus 6.7.
Open PROJECT.DSN with Proteus 6.7.
Open project.Uv2 with µVision 3 (or µVision 3), compile and run Start DEBUG Session then RUN, then see what happen on Proteus Screen

Note : until know I can't 'connect' Keil µVision to Proteus 6.9, any body could help?
 

    Help

    Points: 2
    Helpful Answer Positive Rating
uvision2 proteus

Hi,

I still can't do the DEBUG. Please see the step that i have done.

I think, i have another problem. I can't get DNS Suffix..
(Please refer C:\Keil\C51\HLP\VDMAGDI)
Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : labcenter.lan
IP Address. . . . . . . . . . . . : 10.0.0.136
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.5

My PC DNS Suffix...
Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.0.0.10
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.1

Is it because of this i can't link it?

Thank You.
 

software proteus

I have made some comment on your WORD file, please check it and report the progress.
 

    Help

    Points: 2
    Helpful Answer Positive Rating
how to compile c code in proteus

Hi,

1) There are no second Proteus VSM Simulator in [C51] (original TOOLS.INT file no modification after install)

2) Uninstall uVision3 install back uVision2 (old version)

3) Yes, I have TCP/IP stack running on my Windows. Here have 3 PCs.

Please check the WORD file again.

Thank You.
 

vdm51.dll

2) Uninstall uVision3 install back uVision2 (old version)
Install Keil on a fresh folder, ie d:\Keil

3) Yes, I have TCP/IP stack running on my Windows. Here have 3 PCs.
It is OK
 

    Help

    Points: 2
    Helpful Answer Positive Rating
proteus и c

Hi,

Still can't connect to proteus.
 

proteus and c

Know try this demonstration file!
 

    Help

    Points: 2
    Helpful Answer Positive Rating
how to debugger .c proteus

Hi,

Please see the result.

Thank You.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top