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

Boot Loader + Interrupt handling

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



Joined: 30 Oct 2006
Posts: 5

View user's profile Send private message

Boot Loader + Interrupt handling
PostPosted: Thu Dec 21, 2006 12:16 am     Reply with quote

Hi Everyone,

I am trying to implement a bootloader which can switch between two different user codes on every reset. The user codes are small in size, hence user_code_1 and user_code_2 can be stored in the flash.

Now since both the user_codes can have their own interrupts, i.e there can be #INT_XXX twice ( both in user_code_1 and user_code_2). This generates an error...

Is there any method to solve this.?

Note:
a) My boot loader does not use interrupts .
b) Currently I have used goto, and written my own ISR handlers for each user_code
c) user_code_1 :0x800 - 0x23FF; user_code_2 :0x2400 - 0x3FFF

Thanks in advance !

Sandeep Cool
asmallri



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

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

PostPosted: Thu Dec 21, 2006 1:17 am     Reply with quote

Implement a single general purpose handler which checks to see which application is in control and then passes control to the appropriate function.
_________________
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