CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PCH 4.004 and bootloader

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Dan
Guest







PCH 4.004 and bootloader
PostPosted: Mon Apr 02, 2007 2:41 pm     Reply with quote

I'm using a 18F2580 at 20MHz with v4.004.

I'm working with the bootloader example files EX_BOOTLOAD.C, BOOTLOADER.H, loader.c, and EX_BOOTLOADER.C

I'm trying to compile EX_BOOTLOAD.C and I get an error: Invalid ORG range

It says this is located on a line that is one more than the last line of the file (my file is only 47 lines long and it says the error is on line 48).

Here is the error report:
--- Info 300 "ex_bootload.c" Line 48(0,1): More info: Segment at 00000-004FE (0000 used) Priv
--- Info 300 "ex_bootload.c" Line 48(0,1): More info: Segment at 00500-07FFE (0000 used)
--- Info 300 "ex_bootload.c" Line 48(0,1): More info: Attempted to create: 004FE-00500 for reset
*** Error 126 "ex_bootload.c" Line 48(0,1): Invalid ORG range
1 Errors, 0 Warnings.

Has anyone else experienced this?
Dan
Guest







PostPosted: Mon Apr 02, 2007 3:14 pm     Reply with quote

I just tried using hardcoded numbers that were greater than the LOADER_END instead of the constants in the #build directive and it worked. Also, I tried using 0x4FF instead of LOADER_END+2 and I got the same error. I think the #build directive does not accept addition inside of it in this version nor does it accept inner parenthesis.

0x4FF + 2 = 0x501, should I use 0x501 or 0x500 for the reset vector?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 02, 2007 3:54 pm     Reply with quote

Quote:
I'm using a 18F2580 at 20MHz with v4.004.

See the versions page:
http://www.ccsinfo.com/devices.php?page=versioninfo

Get either vs. 4.031 or vs. 3.249, but don't use 4.004.
Compiler download page:
http://www.ccsinfo.com/compilerupdates.php
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group