This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A question about ISRs, bootcode and application code

Hello all,
Why is it that the boot code and the application code cannot share the same ISRs? I had a look at previously posted threads in the forum but I couldn't find a technical explanation. Can you?
Thanks in advance,
CactusBlip

Parents
  • For starters: because it must be possible to change the boot loader and the application independently from each other --- otherwise there would be no point making them separate entities.

    A boot loader can't know beforehand what the application might need to do in which interrupt service handler. The application cannot generally restrict itself to those (few) ISRs the boot loader may use.

    This offers two main possibilities:

    1) to redirect interrupt invocations either into the boot loader or into the application, depending on which of them is running.

    2) A boot loader that uses no interrupts at all

Reply
  • For starters: because it must be possible to change the boot loader and the application independently from each other --- otherwise there would be no point making them separate entities.

    A boot loader can't know beforehand what the application might need to do in which interrupt service handler. The application cannot generally restrict itself to those (few) ISRs the boot loader may use.

    This offers two main possibilities:

    1) to redirect interrupt invocations either into the boot loader or into the application, depending on which of them is running.

    2) A boot loader that uses no interrupts at all

Children