View previous topic :: View next topic |
Author |
Message |
pmuldoon
Joined: 26 Sep 2003 Posts: 218 Location: Northern Indiana
|
#org 0x10000 |
Posted: Mon Apr 14, 2008 10:44 am |
|
|
I am trying to compile a bootloader program to reside in high memory by using the following directives:
PCH Compiler version 4.071
#include <18F6722.h>
#define MAX_LOADABLE 0x1F630
#org 0x0008, MAX_LOADABLE {}
and I get the following msgs:
--- Info 300 "bootloader.c" Line 62(27,28): More info: Segment at 00000-0FFFE (0000 used)
--- Info 300 "bootloader.c" Line 62(27,28): More info: Segment at 10000-1FFFE (0000 used)
--- Info 300 "bootloader.c" Line 62(27,28): More info: Attempted to create: 00008-1F630 for #org
*** Error 126 "bootloader.c" Line 62(27,28): Invalid ORG range
It doesn't seem to work with any value greater than 0xFFFF.
Even 0x10000 will fail.
The chip has 128K of program memory.
I can locate the program in the middle of memory by using 0xFFFF, but
the org directive doesn't seem to like a 5 digit hex number.
Am I just missing something obvious? |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
pmuldoon
Joined: 26 Sep 2003 Posts: 218 Location: Northern Indiana
|
|
Posted: Mon Apr 14, 2008 11:09 am |
|
|
Thanks, PCM.
You saved me again!
I never would have thought of that one.
I guess TheByteFactory code is pretty popular, eh?
Maybe you should be promoted to PCH?! |
|
![](templates/subSilver/images/spacer.gif) |
|