Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

ISD 51 implementation in keil

Status
Not open for further replies.

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
isd51 example

has any one implemented ISD51 for 8051 micro-controller.
in my case the simulation is working fine but when burned in an eprom the program hangs.
also what is the meaning of
if 1
{
}
endif

and
if 0
{
}
endif
in the demo example program
please help
hock
 

incognito

Member level 2
Joined
Dec 31, 1999
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
309
isd51 vs mon51

hock said:
has any one implemented ISD51 for 8051 micro-controller.
in my case the simulation is working fine but when burned in an eprom the program hangs.
also what is the meaning of
if 1
{
}
endif

and
if 0
{
}
endif
in the demo example program
please help
hock
In C , if(1) or while(1) mean the condition will be always truth
anf if(0) or while(0) mean the condition always false

perhaps try to step trace this part of code and confirm :)

I hope this helped a bit


Regards
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
keil 51 pk51 full version keygen

who sets
if(1) or while(1)
and
if(0) or while(0) ?
if you refferto the demo programe it will be clear to you what my confusion is.
thanks
hock
 

pin

Member level 2
Joined
Nov 30, 2002
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
338
isd51 dll

I S D 5 1 for 8051 micro-controller:
h**p://embedded-electronics.nm.ru/example.zip

BR, pin
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
unresolved external symbol keil

I would like to thanks all the people who have shown interest in this problem.
I am trying to use ISD51 in system debugger from ke*il. It is similar to what mon51 of keil dose, more over you have very small code for ISD51 as compared to Mon51.

I have tried to implement one simple program just to learn how ISD works.

In simulation mode printf is not working with my bode rate generation code but works fine with code used in hello.c example. Why?

What is the function of this part of the program?
Why #if 0 and #if 1 are used, and who sets 0 or 1?

#if 0 // init ISD51 and start user program until the uVision2 Debugger connects
ISDinit (); // initialize uVision2 Debugger and continue program run
#endif

#if 0 // init ISD51 and wait until the uVision2 Debugger connects
ISDwait (); // wait for connection to uVision2 Debugger
#endif

#if 1 // init ISD51 only when the uVision2 Debugger tries to connect
ISDcheck(); // initialize uVision2 Debugger and continue program run
#endif

if i dissable printf ststement the code is working nice in simulation mode but fails to run on the target system.

i am using sab 80c535 micro controller from Infineon and have no on chip flash.
my memory range is
0x0000 to 0x3fff EPROM
0x4000 to 0x7fff ROM
0x8000 to 0xbfff EPROM
0xc000 to 0xffff Rom
i am getting one warning, it works in simulation mode, when i enter sin = 0xa5 i get seven hex values as specified in isd manual and the program terminates( might be waiting for uv2 to connect)
what is the symbol ?ISD?CORE

this is the output of the compiler window.
Build target 'Target 1'
assembling STARTUP.A51...
compiling isd51_test.c...
assembling ISD51.A51...
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?ISD?CORE
MODULE: ISD51.obj (ISD51_CONFIGURATION)
Program Size: data=13.0 xdata=0 code=625
creating hex file from "test3"...
"test3" - 0 Error(s), 1 Warning(s).

please help
hock
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
unresolved external symbol in keil

here is the file
hock
 

usbman

Advanced Member level 4
Joined
Sep 22, 2002
Messages
118
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Location
Germany
Activity points
1,019
isd51 mon51

hock said:
i am getting one warning, it works in simulation mode, when i enter sin = 0xa5 i get seven hex values as specified in isd manual and the program terminates( might be waiting for uv2 to connect)
what is the symbol ?ISD?CORE
[]
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?ISD?CORE
MODULE: ISD51.obj (ISD51_CONFIGURATION)
Program Size: data=13.0 xdata=0 code=625
creating hex file from "test3"...
"test3" - 0 Error(s), 1 Warning(s).

please help
hock
You will need Keils PK51 package if you are using ISD51.
Only the libs which are delivered with PK51 have ISD51 support.
See also ISD51.htm.
This warning means that ISD_CORE is not in your runtimelib.
unresolved external should be threated as error in most cases.

usbman
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
isd keil

i have full version of pk51. i have downloaded all the update file from leil site and have checked them, none of them has any isd51.lib. are you sure there is any such file.
hock
 

usbman

Advanced Member level 4
Joined
Sep 22, 2002
Messages
118
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Location
Germany
Activity points
1,019
+keil +unresolved external symbol

hock said:
i have full version of pk51. i have downloaded all the update file from leil site and have checked them, none of them has any isd51.lib. are you sure there is any such file.
hock
yes I am shure .

BTW:
I dit not say there is is a ISD51.lib. ?ISD_CORE is placed in C51S.LIB and
C51L.LIB and so on.

So if get the undefined external about ?ISD_CORE you don't have the PK51 installed. May be you got the DK51...

usbman
 

Robby

Member level 2
Joined
Jan 24, 2002
Messages
50
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
423
ISD

Hello hock,

I guess there are some confusions in understanding the meaning of the examples.
First of all, the statements you mentioned like --> #if 0 ... #if 1, are only used to
exclude the put in brackets code from translation. This is simply a better way as using uncomments by using // or /**/.
With other words, if you want to include use 1, in other case 0. Preprocessor statements
are often use in C, to control the translation process.
The example you tried (your uploaded file) contain such a statement to test the UART in general.
If you don't uncomment this, your application runs endless in a loop. If you start a terminal program
you can check your Controller-UART by pressing a key. Reflection will be done.
But, you have to exclude this to go further.
Check your project rules, if the path to the headers are exeptable.

good luck

Robby
 

huahua

Member level 2
Joined
Sep 21, 2002
Messages
42
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
263
hock,

There is the file ISD51.dll. An aslo, you need the header.
 

mystery

Full Member level 2
Joined
May 9, 2001
Messages
124
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Location
Turkey
Activity points
825
what is isd ?
what is it used for?
 

sc/mp

Full Member level 2
Joined
Feb 10, 2002
Messages
128
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Activity points
1,054
ISD = In Circuit Debugger, a small footprint monitor from Keil and usable with Keil 51 debugger.

Regards
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
i am still strugeling with it. i do have isd51.dll and the hader file.
hock
 

usbman

Advanced Member level 4
Joined
Sep 22, 2002
Messages
118
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Location
Germany
Activity points
1,019
hock said:
i am still strugeling with it. i do have isd51.dll and the hader file.
hock
I have checked C51s.lib with lib51.exe
The symbol ISD_CORE is there (C51 V704).
So if its not in your libs you have not installed the PK51 package,
or you are using an older lib version.

BTW you should check your PM
usbman
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
I would like to thank all the people who have replied to my question, in particular to usbman. There was no error in the code. The variable is defined in the C51s.lib.i do not know how but for some stupid reason the setup programme was not replacing some header file and exe files including c51 and lib51 when I was upgrading. I was getting latest version number due to tools.ini file. I have unzipped the up51v704.exe using winrar and then copied c51 and uv2 folder to my Keil folder. Now it is working fine. I would advise all of you to check this on your system as well especially if you are using the old elektroda distribution.
Thanks to all of you once again.
Hock
 

usbman

Advanced Member level 4
Joined
Sep 22, 2002
Messages
118
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Location
Germany
Activity points
1,019
just a short note:
The new Keil version (V7.05) has a improved IDS51 support
which now can handle Rx2 mcus (hw breaks in flash)

see www.keil.com

usbman
 

hock

Advanced Member level 2
Joined
May 28, 2001
Messages
525
Helped
47
Reputation
94
Reaction score
21
Trophy points
1,298
Location
India
Activity points
3,567
up51v707a.exe contains update for all the versions.
depending upon ur serial number it will unpack the relevant files
hock
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top