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
Posted: Thu Mar 20, 2003 3:45 pm
:=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
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