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
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
Posted: Thu Dec 21, 2006 1:17 am
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
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