Pumpkin User Forums
  PICmicro MCUs
  Problems with AN-25 Building a Salvo App with MPLab C18

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Problems with AN-25 Building a Salvo App with MPLab C18
aek
Moderator
posted May 28, 2007 20:57     Click Here to See the Profile for aek     Edit/Delete Message   Reply w/Quote
Just remove those two sections from the save directive in the ISR -- the latest versions of the compiler no longer need them.

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

IP:

nealfoster
Junior Member
posted May 28, 2007 15:14     Click Here to See the Profile for nealfoster     Edit/Delete Message   Reply w/Quote
i had the same problem as you, and the updated libraries fixed the compile errors, but I am still getting warnings when compiling isr.c

do you still get the warnings?

C:\salvo\demo\d4\isr.c:70:Warning [2074] location PROD specified in the interrupt save list is redundant
C:\salvo\demo\d4\isr.c:70:Warning [2074] location .tmpdata specified in the interrupt save list is redundant

IP:

mwirth
Junior Member
posted April 05, 2007 14:36     Click Here to See the Profile for mwirth     Edit/Delete Message   Reply w/Quote
Bingo! Thanks.

The operative paragraph in the versions.txt file that you referenced is:
salvo-lite|le|pro-pic-3.2.3-d.zip is a complete set
of new Salvo libraries for use with the Microchip
MPLAB-C18 compiler v3.02 and above and MPLINK v4
or higher.

As usual, RTFM (but also all release notes :-)

Mike

IP:

aek
Moderator
posted April 05, 2007 12:32     Click Here to See the Profile for aek     Edit/Delete Message   Reply w/Quote
You need to download and install the new libraries: http://www.pumpkininc.com/salvo/lite/pic/3.2/versions.txt

-d.zip.

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

IP:

mwirth
Junior Member
posted April 05, 2007 12:20     Click Here to See the Profile for mwirth     Edit/Delete Message   Reply w/Quote
OK, I got further, by:
1. Changing PORT in main.c to PORTB (a defined port for this PIC chip).

Now I only get a couple warning messages during the compile.

But I get a loading error because of incompatible COFF format from the prebuilt libraries, exactly like the one in an earlier message, http://www.pumpkininc.com/ubb/Forum17/HTML/000126.html

I'm, using the Salvo Lite 3.2.3 download for PIC. Did the COFF format change again with the new C18 compiler release? Do you need to recompile the Salvo Lite libraries?

TIA,

Mike

IP:

mwirth
Junior Member
posted April 04, 2007 13:59     Click Here to See the Profile for mwirth     Edit/Delete Message   Reply w/Quote
I'm new to Salvo, and trying to get the demo app, ex1, in AN-25 to build (with the newly released C18 v3.10 -- but I don't think that's the problem).

I've done a search of these forums and fixed a couple issues, but the last one below remains. Help?

1. Please add a note to AN-25 for neophytes that \salvo\ex\ex1\main.c is read-only, as will be the copy that they add to their new project. They'll have to permit writes to add the "#include <p18c452.h>" to their main.c

2. Add a note to AN-25 that they'll have to add two symbol definitions in the Project > Build Options...>Project dialog, MPLAB C18 tab, Macro Definitions pane, specifically:
SYSE
MAKE_WITH_FREE_LIB

3. Doing both of these gets me closer, but now I get compile errors:
C:\PIC\Salvo\main.c:146:Warning [2074] location PROD specified in the interrupt save list is redundant
C:\PIC\Salvo\main.c:146:Warning [2074] location .tmpdata specified in the interrupt save list is redundant
C:\PIC\Salvo\main.c:44:Error [1105] symbol 'PORT' has not been defined
C:\PIC\Salvo\main.c:44:Error [1101] lvalue required
C:\PIC\Salvo\main.c:56:Error [1105] symbol 'PORT' has not been defined
C:\PIC\Salvo\main.c:56:Error [1101] lvalue required
C:\PIC\Salvo\main.c:67:Error [1105] symbol 'PORT' has not been defined
C:\PIC\Salvo\main.c:67:Error [1101] lvalue required
C:\PIC\Salvo\main.c:76:Warning [2058] call of function without prototype
C:\PIC\Salvo\main.c:78:Warning [2058] call of function without prototype
C:\PIC\Salvo\main.c:161:Error [1105] symbol 'PORT' has not been defined
C:\PIC\Salvo\main.c:161:Error [1101] lvalue required
Halting build on first failure as requested.

Any hints?

TIA,

Mike

IP:

All times are ET

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Pumpkin Home Page

©2000-2008 Pumpkin, Inc. All Rights Reserved. Pumpkin and the Pumpkin logo, Salvo and the Salvo logo, The RTOS that runs in tiny places, CubeSat Kit and the CubeSat Kit logo are all trademarks of Pumpkin, Inc. All other trademarks are the properties of their respective owners.


Ultimate Bulletin Board 5.46a