|
|
View previous topic :: View next topic |
Author |
Message |
Dan Guest
|
PCH 4.004 and bootloader |
Posted: Mon Apr 02, 2007 2:41 pm |
|
|
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
|
|
Posted: Mon Apr 02, 2007 3:14 pm |
|
|
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
|
|
|
|
|
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
|