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

Reset vector where I want it

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







Reset vector where I want it
PostPosted: Thu Mar 20, 2003 3:14 pm     Reply with quote

Hi!
I've just started using PIC16F877A and I've loaded a bootloader on top of flash. Bootloader writes reset vector in order to be the first program executed. I compile my program with MPLAB(CCS) and it puts reset vector to the main program. I've tried putting #ORG ox0000,0x0004 {} but it doesn't work.
I should too write my first program's direction on 0x1F2E.

Thanks
___________________________
This message was ported from CCS's old forum
Original Post ID: 12895
R.J.Hamlett
Guest







Re: Reset vector where I want it
PostPosted: Thu Mar 20, 2003 3:45 pm     Reply with quote

:=Hi!
:= I've just started using PIC16F877A and I've loaded a bootloader on top of flash. Bootloader writes reset vector in order to be the first program executed. I compile my program with MPLAB(CCS) and it puts reset vector to the main program. I've tried putting #ORG ox0000,0x0004 {} but it doesn't work.
:= I should too write my first program's direction on 0x1F2E.
Have a look at this thread:
<a href="http://www.pic-c.com/forum/general/posts/10731.html" TARGET="_blank">http://www.pic-c.com/forum/general/posts/10731.html</a>

The #build (undocumented) directive, allows the reset to be relocated as you require.

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 12896
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