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

Example File EX_BOOTLOADER.C in PCM Version 3.188

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



Joined: 19 Mar 2004
Posts: 2

View user's profile Send private message

Example File EX_BOOTLOADER.C in PCM Version 3.188
PostPosted: Wed Mar 31, 2004 12:28 am     Reply with quote

I try to understand the bootloader from EX_BOOTLOADER.C for a 16F876 Chip.
The bootloader jumps to 0x200 for the real user application, the global interrupt routine jumps to 0x204.

So the program to download should have a rom offset of 0x200. So it should start at position 0x200 and its interrupt routine should be at 0x204.

How can I make the compiler to offset the code correctly ?

Frank
guest
Guest







see ... EX_BOOTLOAD.C
PostPosted: Wed Mar 31, 2004 9:38 am     Reply with quote

not

EX_BOOTLOADER.C
Frank_B



Joined: 19 Mar 2004
Posts: 2

View user's profile Send private message

PostPosted: Thu Apr 01, 2004 3:11 am     Reply with quote

ok, the EX_bootload is the user-aplication.

But when adding a interrupt-function like

#int_RDA
RDA_isr()
{
putc('X');
}

there is a "invalid ORG range" error.
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