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

  • But, of course, if Stefan, as suggesated before and now again, used e-mail you goys would not see how great he was.

    Erik

  • "But, of course, if Stefan, as suggesated before and now again, used e-mail you goys would not see how great he was."

    Erik, this sort of comment only serves to make you look foolish. Aside from anything else, how could I email you without knowing your email address?

  • Aside from anything else, how could I email you without knowing your email address?

    since you evidently do not know how to google, here it is: erikm@digrec.com

  • since you evidently do not know how to google

    Oh, I am sorry.

    That should have been: since you ask I will save you the trouble of looking it up, here it is: erikm@digrec.com

    Coddly enough?

    As you see, in the above there is no help for next time, just a tide you over. In the above post a method to save the waiting for a response next time such came up was included.

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

    Erik

  • "since you evidently do not know how to google, here it is: erikm@digrec.com"

    Try googling for my email address and let us know how you get on.

  • "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.

  • as promised:
    If you have anything to say about my expressions/language or whatever non-technical e-mail me.

    I will not pollute the forum with responses to your crap.

    Erik

  • Try googling for my email address and let us know how you get on.
    what on earth does my ability to google for your e-mail address have to do with your ability to google for mine.

    You may be bashful about yours, mine is all over

    Erik

  • "what on earth does my ability to google for your e-mail address have to do with your ability to google for mine.

    You may be bashful about yours, mine is all over"

    The point, as you have now discovered, is that I don't post my email address on websites as I prefer not to receive spam. It did not occur to me that you would post yours with such reckless abandon. This doesn't make me 'bashful' - I think 'normal' would be a more appropriate word.

  • Should I slash my wrists now, or wait till y'all start arguing about who has a more prominent web presence?

    Rich

  • as promised:
    If you have anything to say about my expressions/language or whatever non-technical e-mail me.

    I will not pollute the forum with responses to your crap.

    Erik

  • sorry, did not see who it was that posted.

    wait till y'all start arguing about who has a more prominent web presence?

    No, I am trying to stop the non-technical exchanges, but evidently Stefan does not want to. I have chosen to answer all non-technical posts from Stefan in the above manner, if you have a better way that still allow me not to let his crap go totally unanswered, pray tell.

    Just I get e-mails every week from people seeking '51 help that found my e-mail address without any trouble. Thus in the line of e-mailing someone it seems natural to take a peek at the web. The fact that someone has decided not to let an e-mail address be available should not make that person assume that everybody does the same. Thus "what on earth does my ability to google for your e-mail address have to do with your ability to google for mine."

    Erik

    PS some fora allow you to reveal your e-mail address if willing, evidently the Keil forum does not.

  • The point, as you have now discovered, is that I don't post my email address on websites as I prefer not to receive spam

    A good spam filtering software takes care of that.

    With that in place it is easy to let those that have a genuine interest in e-mailing you know your address.

    The above I consider "technical"

    I had a comment on It did not occur to me that you would post yours with such reckless abandon
    but to get that you will need to adhere to:
    If you have anything to say about my expressions/language or whatever non-technical e-mail me.

    I will not pollute the forum with responses to your crap.

    Erik

  • "sorry, did not see who it was that posted."

    And neither did you read the post before responding.

    You wouldn't get yourself into these sort of situations if you spent a little more time thinking before posting.

  • And neither did you read the post before responding.
    I most certainly did.
    It may be that this is case where "if I heard what you thought you said" applies.

    If you, as you suggest I do, read the post, you would see that what I discussed was not "who has prominent web presence" but reasons for having it and reasons for not having it which both are valid. Leading up to: The fact that someone has decided not to let an e-mail address be available should not make that person assume that everybody does the same which I consider a valid point.

    Erik

    PS please do not slash your wrists, I, for one, will not "start arguing about who has a more prominent web presence".