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

Invalid ORG range

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



Joined: 23 Apr 2009
Posts: 42

View user's profile Send private message

Invalid ORG range
PostPosted: Wed May 19, 2010 3:57 am     Reply with quote

Hi,

never had a problem compiling this for my PIC18F4525

#define MAX_FLASH 0xC000 //for PICs with 48KB of mem
#define LOADER_SIZE 0xFF //tinybld size + a bit more (200 bytes is enough)
#org MAX_FLASH-LOADER_SIZE , MAX_FLASH-1 {}

Today I installed the new MPlab plugin and gave me the error

Executing: "C:\Program files\Picc\CCSC.exe" +FH "Jaga_DBE_PRO.c" #__DEBUG=1 +ICD +LN +T -A +M -Z +Y=9 +EA #__18F4525=TRUE
--- Info 300 "Jaga_DBE_PRO.c" Line 133(42,43): More info: Segment at 00000-0BCBE (0000 used)
--- Info 300 "Jaga_DBE_PRO.c" Line 133(42,43): More info: Attempted to create: 0BF00-0BFFE for #org
*** Error 126 "Jaga_DBE_PRO.c" Line 133(42,43): Invalid ORG range
1 Errors, 0 Warnings.


Help is appreciated

Thanks

Koen
Ttelmah



Joined: 11 Mar 2010
Posts: 19366

View user's profile Send private message

PostPosted: Wed May 19, 2010 7:34 am     Reply with quote

I'd be very surprised if the compiler will allow you to put a bootloader in the top 256 bytes of memory, with DEBUG selected.
If you look at the resources 'used' by ICD (example for ICD2), it will say something like:
'Program memory used 0xBD80-0xBDFF'.

Best Wishes
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