Pumpkin, Inc.

Pumpkin User Forums

An-13

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

An-13

Postby aastokes » Wed Oct 31, 2007 1:05 am

Hi, I've followed An-13 to page 8 but when I try to build the target I get the following errors:

Build target 'Target 1'
compiling main.c...
C:SALVOINCSALVOLIB.H(125): error C320: salvolib.h: Library type not specified -- aborting.
C:SALVOINCSALVOLIB.H(129): error C320: salvolib.h: Library configuration not specified -- aborting.
C:SALVOINCSALVOLIB.H(133): error C320: salvolib.h: Library variant not specified -- aborting.
C:SALVOINCSALVOLIB.H(141): error C320: salvolib.h: Library memory type for globals not specified -- aborting.
C:SALVOINCSALVOLIB.H(173): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(178): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(188): error C320: salvolib.h: Unknown library type -- aborting.
C:SALVOINCSALVOLIB.H(200): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(218): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(236): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(254): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(272): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(291): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(308): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(325): error C320: salvolib.h: Unknown library configuration -- aborting.
C:SALVOINCSALVOLIB.H(334): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(352): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(372): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(381): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(396): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(401): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(423): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(425): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(427): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(430): error C320: salvolib.h: Unknown library memory type -- aborting.
C:SALVOINCSALVOLIB.H(482): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(482): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
compiling mem.c...
C:SALVOINCSALVOLIB.H(125): error C320: salvolib.h: Library type not specified -- aborting.
C:SALVOINCSALVOLIB.H(129): error C320: salvolib.h: Library configuration not specified -- aborting.
C:SALVOINCSALVOLIB.H(133): error C320: salvolib.h: Library variant not specified -- aborting.
C:SALVOINCSALVOLIB.H(141): error C320: salvolib.h: Library memory type for globals not specified -- aborting.
C:SALVOINCSALVOLIB.H(173): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(178): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(188): error C320: salvolib.h: Unknown library type -- aborting.
C:SALVOINCSALVOLIB.H(200): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(218): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(236): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(254): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(272): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(291): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(308): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(325): error C320: salvolib.h: Unknown library configuration -- aborting.
C:SALVOINCSALVOLIB.H(334): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(352): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(372): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(381): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(396): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(401): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(423): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(425): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(427): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(430): error C320: salvolib.h: Unknown library memory type -- aborting.
C:SALVOINCSALVOLIB.H(482): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(482): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
C:SALVOINCSALVOLIB.H(555): warning C322: unknown identifier
Target not created

Any help much appreciated.

Regards

Adam

aastokes
 
Posts: 5
Joined: Mon Oct 29, 2007 11:00 pm
Location: Edinburgh, Scotland

Re: An-13

Postby aek » Wed Oct 31, 2007 8:22 am

1) Before trying to build a project from scratch, always please try the existing projects in the distribution.

2) From the initial error messages, sounds like it's not finding the various #defines that are required (see p. 5) to properly steer Salvo to the right configuration. It's found _a_ salvocfg.h (because o/wise you'd have a file not found error), but apparently not the one you've created. Make sure your include paths to your salvocfg.h are set. I find that putting a

code:
#error Boo!

in a header file goes a long way to verifying that said particular header file is being found at compile time ...

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

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

Re: An-13

Postby aek » Wed Oct 31, 2007 8:27 am

Another possibility is that you have a typo in your salvocfg.h .. check it.

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

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

Re: An-13

Postby aastokes » Thu Nov 01, 2007 12:23 am

Typo,

Put OS_LIBRARY instead of OSLIBRARY.

Apologies and thanks for the help.

Kind Regards

Adam.

aastokes
 
Posts: 5
Joined: Mon Oct 29, 2007 11:00 pm
Location: Edinburgh, Scotland


Return to 8051 family

Who is online

Users browsing this forum: No registered users and 1 guest

cron