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 CCS Technical Support

Codeloader: Increase MAX_LOADABLE value.

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



Joined: 24 Jul 2005
Posts: 2

View user's profile Send private message

Codeloader: Increase MAX_LOADABLE value.
PostPosted: Sun Jul 24, 2005 10:03 pm     Reply with quote

I'm using Codeloader on a PIC18F6720 chip. When I change the MAX_LOADABLE value from 0x6800 to 0x10000, the compiler shows "Invalid ORG range" error. The maxumim value I can set for MAX_LOADABLE is only up to 0xFFFF. I'm using PCH v3.228. Anyone has the same problem?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 24, 2005 11:25 pm     Reply with quote

I think you can work-around this problem by using
two #org statements. The first #org reserves ROM
in the lower 64K, and the 2nd #org statement handles
the upper 64K region.
Code:
#if getenv("FUSE_SET:WDT")==TRUE
#define MAX_LOADABLE   0x1E800 
#else
#define MAX_LOADABLE   0x1E820 
#endif

#org 0x0008, 0xFFFF {}   
#org 0x10000, MAX_LOADABLE {}   
sshon



Joined: 24 Jul 2005
Posts: 2

View user's profile Send private message

sshon
PostPosted: Sun Jul 24, 2005 11:51 pm     Reply with quote

Problem solved with the work-around. Thank you very much Smile
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