Problem getting started with Proteus 8 & Keil

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
fennelly
Professional User
Posts: 14
Joined: Tue 2007-12-11 22:48

Problem getting started with Proteus 8 & Keil

Post by fennelly »

Hi,

I have just recently installed Proteus 8.0 SP2. I immediately tried to create a small program to flash an LED using an 8052.
Unfortunately I get the following error message when I try to build the program from within the Proteus IDE.

> “RunTool.exe” is not recognized as an external or internal command.

Keil C51 is selected as the compiler to be used. The Keil C51 compiler is installed on the machine.
The program compiles without a problem when a project created in Keil . I am using Keil C51 V9.02 & BL51 V6.22. These are a few years old.

I tried it on a machine running XP and on a machine running Windows 7. Behaved exactly the same.

The error message is probably as a result of a simple configuration error. Any ideas ?

Regards

Frank F
David
Site Admin
Posts: 2267
Joined: Mon 2006-02-20 14:56
Location: Head Office
Contact:

Re: Problem getting started with Proteus 8 & Keil

Post by David »

Hi Frank,

This has been fixed, and I have E-mailed you the files.

Kind regards,
David Spencer - Labcenter Electronics.
fennelly
Professional User
Posts: 14
Joined: Tue 2007-12-11 22:48

Re: Problem getting started with Proteus 8 & Keil

Post by fennelly »

Hi

I am still encountering problems using Proteus 8 with Keil C51.

I used the debug folder which was sent to me and it did indeed simulate.

I copied the XML file which was sent to me to the appropriate folder.
Good news is that the C51 program will now compile.
Bad news is that an error is generated during linking.
The error message is shown below. (I was not allowed upload as a .txt file ?)

I downloaded SDCC and used it to build the same project without a problem.

Can you have another look at this please.


Regards

Frank F.


C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
"C:\Program Files\Labcenter Electronics\Proteus 8 Professional\Tools\MAKE\RunTool.exe" --good-exits=0,1 --executable=BL51.exe "main.OBJ" TO "Debug.OMF"

BL51 BANKED LINKER/LOCATER V6.22 - SN: C1ACC-ZA8V6E
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2009

*** FATAL ERROR L210: I/O ERROR ON INPUT FILE:
EXCEPTION 0021H: PATH OR FILE NOT FOUND
FILE: C:\C51\LIB;C:\KEIL\C51\BIN\..\LIB\C51S.LIB
make: *** [Debug.OMF] Error 1

Error code 2
FJF
CarlowIT
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Problem getting started with Proteus 8 & Keil

Post by Ettore »

The SDCC is a different compiler so that's another story.

About Keil compiler it looks as though you don't have the library file C51S.LIB (small memory) into the folder C:\KEIL\C51\LIB.
If that's the case you need to reinstall your KEIL compiler.
Another reason might be that you have installed your KEIL into a non standard location or have moved files or directories.
Try to 'Check All' compilers with 'Compilers Configuration' tool under System menu.

Anyway, I have tried to compile the file BLINKY under C:\KEIL\C51\EXAMPLES and it compiles and links correctly.
My Keil linker is exactly as the your, BL51 V6.22.
Kind regards,
Ettore Arena - Labcenter Electronics.
Post Reply