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

Problems using #ORG directive

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



Joined: 12 May 2005
Posts: 31
Location: BRAZIL

View user's profile Send private message Visit poster's website MSN Messenger

Problems using #ORG directive
PostPosted: Tue May 17, 2005 8:00 am     Reply with quote

Hi,

I am trying to place some functions at some desired flash memory locations:

// placing func1 between 0x1000 and 0x1F000
#org 0x10000, 0x1f000 auto =0 default
func1()
{}
#org default


(line***)#org 0x1f001, 0x1ffff auto = 0 default
func2()
{}
# default default

But I am receiving the following error messages from the compiler:
line*** - More info: Segment at 00000-0FFFE (0000 used)
line*** - More info: Segment at 10000-1F000 (0000 used) Priv
line*** - More info: Segment at 1F002-1FFFF (0000 used)
line*** - More info: Attempted to create: 0F800-0FFFF for #org

Thanks in advance,

Andre Moutinho
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 17, 2005 1:24 pm     Reply with quote

What PIC are you using ? Does your PIC actually have ROM in
the address ranges that you are specifying ?

What is your compiler version ?

Do you really need to reserve such large areas ? ie., almost 64 KB
for a bootloader, which should really take less than 1 KB ?

Did you really compile this code ? This line here will certainly not
compile:
# default default
moutinho



Joined: 12 May 2005
Posts: 31
Location: BRAZIL

View user's profile Send private message Visit poster's website MSN Messenger

PostPosted: Wed May 18, 2005 7:05 am     Reply with quote

>
PCM programmer wrote:
What PIC are you using ? Does your PIC >actually have ROM in
>the address ranges that you are specifying ?
Yes

>What is your compiler version ?
CCS 3.206

>Do you really need to reserve such large areas ? ie., almost 64 KB
>for a bootloader, which should really take less than 1 KB ?
Yes

>Did you really compile this code ? This line here will certainly not
>compile:
># default default

Yes, but I cant past the code here. So I made a mistake copying the code. Sorry.
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