Pumpkin, Inc.

Pumpkin User Forums

about the keil51 project

For issues specific to the 8051 family, including compilers (e.g. Keil C51) and IDEs (e.g. uVision2).

about the keil51 project

Postby annachen » Tue Oct 12, 2004 8:03 am

I use the salvo with uvisionV2.30,and compile the project in tut subdirectry perfectly,but when I made my own project,it always have the "error c320:undefined Salvo test system(SYS*).Definition required."even after I put all the files needed to the same subroutine,could you please help me?(just the simple one of tu1 files.Thank you.
annachen
 
Posts: 8
Joined: Thu Sep 09, 2004 11:00 pm
Location: China,Tianjin

Re: about the keil51 project

Postby aek » Tue Oct 12, 2004 8:07 am

If you are getting that message, it means that you are using one of the extra source files (main.c, main.h, isr.c or isr.h) that are located in salvo ut u1, or you're using salvo ut u1sysisalvocfg.h.

To use these files, you must define the symbol SYSI so that these files know that you are building an 8051 project using Keil's uVision2 + C(x)51.

So, under Project -> Options -> C51 -> Preprocessor Symbols -> Define, add SYSI=1 and you'll be fine ...

------------------

-------
aek
aek
 
Posts: 1887
Joined: Sat Aug 26, 2000 11:00 pm

Re: about the keil51 project

Postby annachen » Wed Oct 13, 2004 12:18 am

linking...
*** WARNING L7: MODULE NAME NOT UNIQUE
MODULE: ..libsfc51sdmb.lib (MEM)
*** WARNING L7: MODULE NAME NOT UNIQUE
MODULE: ..libsfc51sdmb.lib (MEM)
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: OSTIMERTICKS
MODULE: ..libsfc51sdmb.lib (INIT)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSTIMERTICKS
MODULE: ..libsfc51sdmb.lib (INIT)
ADDRESS: 092DH
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSTIMERTICKS
MODULE: ..libsfc51sdmb.lib (INIT)
ADDRESS: 092FH
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSTIMERTICKS
MODULE: ..libsfc51sdmb.lib (INIT)
ADDRESS: 0931H
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSTIMERTICKS
MODULE: ..libsfc51sdmb.lib (INIT)
ADDRESS: 0933H
Program Size: data=19.0 xdata=0 code=330
"try" - 0 Error(s), 7 Warning(s).

after I do it,it appears the information above, how can I handle it,please?

------------------

annachen
 
Posts: 8
Joined: Thu Sep 09, 2004 11:00 pm
Location: China,Tianjin

Re: about the keil51 project

Postby aek » Wed Oct 13, 2004 6:07 am

Hi Anna.

Those errors look like a mismatch between the OSLIBRARY_XYZ settings in your salvocfg.h, and the library you're using. You may also have more than one Salvo library added to the project.

The best thing at this point is to review the existing Salvo projects that are in salvo ut u[1-6]sysi. If you have edited or otherwise changed them, I suggest you uninstall and re-install Salvo for 8051, and check them again.

If that doesn't help, please copy the entire uVision Build Log and post it here -- that may be enough to see what's wrong.

------------------

-------
aek
aek
 
Posts: 1887
Joined: Sat Aug 26, 2000 11:00 pm

Re: about the keil51 project

Postby annachen » Fri Oct 15, 2004 12:02 am

Hi,aek:
Thanks for your prompt reply,the strange things is that,I use the "main.c,config.c,mem.c ..."all the files I use same as in TU1SYSITU1FREE, and I can build the later one perfectly, but have the problem with my own project;and after I remove the file"mem.c", then I can build it "ok", what's the purpose with the file"mem.c"?
annachen
 
Posts: 8
Joined: Thu Sep 09, 2004 11:00 pm
Location: China,Tianjin

Re: about the keil51 project

Postby aek » Fri Oct 15, 2004 6:03 am

Hi Anna.

Ahh, you're using an older version of Salvo (I can see from the name tu1free).

Please download the current versions of Salvo and your problem with mem.c should go away ...

------------------

-------
aek
aek
 
Posts: 1887
Joined: Sat Aug 26, 2000 11:00 pm

Re: about the keil51 project

Postby annachen » Sun Oct 17, 2004 6:45 am

Hi, aek:
I'm sorry to bother you once more, since I really don't know what I can do about it, after I download the new version,"salvo-lite-8051-3.1.0-c",it appears a lot of information like this:
"C:KEILC51INCCYGNALC8051F000.H(181): error C231: 'F0': redefinition
C:KEILC51INCCYGNALC8051F000.H(182): error C231: 'RS1': redefinition
C:KEILC51INCCYGNALC8051F000.H(183): error C231: 'RS0': redefinition
C:KEILC51INCCYGNALC8051F000.H(184): error C231: 'OV': redefinition
C:KEILC51INCCYGNALC8051F000.H(186): error C231: 'P': redefinition
compiling config.c...
compiling mem.c...
Target not created", so what's wrong with it,I'm really nervous about it, so for salvo study, where is the best way to start, because i really want to learn it, so could you please give me some direction about how to learn it? thank you.
annachen
 
Posts: 8
Joined: Thu Sep 09, 2004 11:00 pm
Location: China,Tianjin

Re: about the keil51 project

Postby annachen » Mon Oct 18, 2004 12:17 am

Hi,aek:
I read the salvousermanual,I skim some of the chapters and study the chapter4 Tutorial, and it said that we should know familiar with creating and using libraries with the compiler, but I can't find them both in keil nor in picc mplab, so what can i do first?Is it so difficult to learn?
annachen
 
Posts: 8
Joined: Thu Sep 09, 2004 11:00 pm
Location: China,Tianjin

Re: about the keil51 project

Postby annachen » Tue Oct 19, 2004 5:25 am

Hi,aek:
Thanks for your patients to answer all my questions, but where can I download the V3.2.2, because I download from the web www.pumpkininc.com, and it always the version V3.1.0. Another question is that,I usually use the *.lib which the keil or mplab picc offered, but i don't know how to modify it, even I can' t open the .lib file ,so could you please give me more information about this?thank you.
annachen
 
Posts: 8
Joined: Thu Sep 09, 2004 11:00 pm
Location: China,Tianjin

Re: about the keil51 project

Postby aek » Tue Oct 19, 2004 8:15 am

Hello.
quote:
Hi, aek:
I'm sorry to bother you once more, since I really don't know what I can do about it, after I download the new version,"salvo-lite-8051-3.1.0-c",it appears a lot of information like this: ...
Please uninstall all your versions of Salvo, delete the Salvo folder, and re-install Salvo Lite v3.2.2.
code:
Build target 'Target 1'
compiling mem.c...
compiling isr.c...
compiling main.c...
linking...
Program Size: data=52.0 xdata=0 code=1024
"tu5lite" - 0 Error(s), 0 Warning(s).

------------------

-------
aek
aek
 
Posts: 1887
Joined: Sat Aug 26, 2000 11:00 pm

Next

Return to 8051 family

Who is online

Users browsing this forum: No registered users and 1 guest

cron