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

Code Loader Issues

All,
We are designing a "loader" for field firmware updates. Unfortunately we do not have the code space (P89C668) to have two sets of code in on-chip flash. Therefore we will use a scheme where we have the loader code located in sector one and all the ISRs in sector zero as the loader will use interrupts. The rest of the application will be in sectors 2 and up.

The loader will erase the upper sectors and program the new code there. It will then erase sector zero and reprogram the vector table and the ISRs. Block one, the loader, will remain unchanged.

Questions:
I think I can locate the code in sector one and the ISRs in sector zero using user classes. I have done this with some ARM code in uVision. How can I be sure that the loader will have all the run-time modules it needs in sector zero? In other words, I cannot have the loader calling code in sectors that have been erased. It will have to be completely self contained except for the ISRs.

Is this a reasonable plan? Anyone have a better way to do this?

Rich

Parents
  • "as I say "you do it your way, I do it mine, jusr stop telling me that your way is the only way""

    But Erik - this is precisely what you do. You have fixed opinions on what is right and what is wrong, and you express these opinions as though they were facts.

    In this particular thread you went a step further and stated that something was impossible to achieve, because you could not see a way to achieve it. When someone else pointed out that it could be achieved you behaved in a very hostile fashion, still adamant that you were correct.

    Try re-reading Jay's post elsethread and you will see that I am not unique in finding this annoying.

    It is one thing adopting an abrasive style of posting and quite another ridiculing someone when they are correct.

Reply
  • "as I say "you do it your way, I do it mine, jusr stop telling me that your way is the only way""

    But Erik - this is precisely what you do. You have fixed opinions on what is right and what is wrong, and you express these opinions as though they were facts.

    In this particular thread you went a step further and stated that something was impossible to achieve, because you could not see a way to achieve it. When someone else pointed out that it could be achieved you behaved in a very hostile fashion, still adamant that you were correct.

    Try re-reading Jay's post elsethread and you will see that I am not unique in finding this annoying.

    It is one thing adopting an abrasive style of posting and quite another ridiculing someone when they are correct.

Children