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

#org 0x10000

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



Joined: 26 Sep 2003
Posts: 218
Location: Northern Indiana

View user's profile Send private message

#org 0x10000
PostPosted: Mon Apr 14, 2008 10:44 am     Reply with quote

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?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 14, 2008 10:49 am     Reply with quote

You are missing the solution in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=31941
pmuldoon



Joined: 26 Sep 2003
Posts: 218
Location: Northern Indiana

View user's profile Send private message

PostPosted: Mon Apr 14, 2008 11:09 am     Reply with quote

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?!
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