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

Question on starting location using PIC 18F4420

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



Joined: 03 Aug 2006
Posts: 1

View user's profile Send private message

Question on starting location using PIC 18F4420
PostPosted: Thu Aug 03, 2006 8:31 pm     Reply with quote

I have a simple question.

I am using a bootloader for the 18F4420 and am using the CCS C Compiler. What instruction do I place in code that will place my starting location of the Main Progran at 0200h in program memory? Is it the #org start,end ?? Is there a instruction where I just give it a starting location only? Purpose is because the bootloader occupies up to 01FFh.

thanks...garry.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Aug 04, 2006 1:43 am     Reply with quote

check out the #build directive.

FYI I don't like low memory bootloaders. It forces you to have code that is bootloader aware and it costs additional cycles to process interrupts.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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