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

#ORG statement for 18F8720

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







#ORG statement for 18F8720
PostPosted: Thu Aug 14, 2003 1:44 pm     Reply with quote

I am trying to get the example bootloader program to work on the 18F8720, and can't get the #ORG statement to compile for an address larger than 0FFFF (the middle of program memory for that chip), which is a problem because I'd like to put it at the end of the internal flash. I'm using version 3.139. Is a version available that corrects this, or is there a workaround?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516970
Michael Thompson
Guest







Re: #ORG statement for 18F8720
PostPosted: Thu Aug 14, 2003 2:08 pm     Reply with quote

:=I am trying to get the example bootloader program to work on the 18F8720, and can't get the #ORG statement to compile for an address larger than 0FFFF (the middle of program memory for that chip), which is a problem because I'd like to put it at the end of the internal flash. I'm using version 3.139. Is a version available that corrects this, or is there a workaround?

Eric,

I successfully compiled the following code using PCH V3.173:

// this code reserves the reset and interrupt vectors and //program memory
#build(reset=0x200)
#build(interrupt=0x208)
#org 0x1FE00,0x1FFFF {}
//#org 0x00000,0x001FF {}
void bootloader()
{
#asm
nop
#endasm
}

However, I did not try to run this code. The commment #org is what I am currently using.

Regards,
Mike
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516971
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