Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Marshall Brown
06/30/10 22:46
Read: 950 times
New Zealand

#177015 - IAP / Dual applications and interrupts
Hi all; - I am going to cross post this at Silabs as well

I have a Silabs C8051F040 but it could be any device with user accessible writes to flash (hence the reason for posting here)and I have implemented an application code loader based on the Silabs app note AN112, my application uses it as a firmware updater.

My general question is:

How can both the runtime application and the code loader utilise the interrupts?

My Code loader is loaded right at the top of the memory in about 1kByte of Flash. However I would like to use the interrupts for the CAN bus and Serial ports so that the application can select where the new application code is coming from. This is all fine, but when the new application is loaded, is it not going to overwrite the interrupt vectors - which I am using for the code loader - with the new application?

How could I achieve this?

I can receive firmware updates via CAN OR via Serial if I sit in main{} and poll the appropriate port, but this is ugly, and a "while {!RI }" type loop effectively prevents me from checking if anything is coming in on the CAN.

Ideas or thoughts are appreciated.


Marshall Brown

List of 13 messages in thread
IAP / Dual applications and interrupts      Marshall Brown      06/30/10 22:46      
   Bootloaders Share Interrupts Like This      Michael Karas      06/30/10 23:38      
      not necessarily a good idea      Erik Malund      07/01/10 06:29      
         Hogworts.....      Michael Karas      07/01/10 09:13      
            interesting concept      Erik Malund      07/01/10 09:43      
         an added note      Erik Malund      07/02/10 07:09      
   Does the bootloader _have_ to use interrupts?      Christoph Franck      07/02/10 06:33      
      Forwarding of interrupts.      Per Westermark      07/02/10 06:38      
         And for reliability...      Michael Karas      07/02/10 09:23      
            Special Hardware Features Also Show up      Michael Karas      07/02/10 09:35      
            emphasizing another factor      Erik Malund      07/02/10 09:51      
               Let me comment on that...      Michael Karas      07/02/10 10:24      
   Yet another consideration with boot loader.      Michael Karas      07/02/10 10:57      

Back to Subject List