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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/01/07 23:21
Read: times


 
#142607 - I'll have to think on that one - excellent idea
Responding to: ???'s previous message
I mean, do you ever need to rewrite page 0? You will be much safer for cheap, if you don't. It can contain the bootloader itself; and the interrupt vectors can be fixed - I don't believe this would pose any real problem.
I'll have to think on that one, my ISRs need be pretty fast and an additional ljmp may be a problem.

Btw. if you know nothing on how the block erase really works, you cannot assume it is safe. Some of the EEPROM/FLASH technologies require that all cells are programmed to 00 before erasing - this can take relatively long and I see similar chance of getting this process interrupted than the programming process. The only way how you can be sure is to provide power for the whole time of the erasure (you certainly know how).
if I could guarantee power on, this issue would be moot. anyhow, I'll have to consider this.

But if you'd insist on reprogramming page 0, I'd recommend you to program the jump "backwards": 00 is nop it's relatively safe to program (again, if you interrupt it halfway through programming a byte the result is unpredictible), C0 00 is push 0, that is little harm; and 02 C0 00 is the complete jump to the correct address.
excellent idea. this, of course is in the smallest 'gap' but we all know that Murphy wax an optimist.

Erik

List of 13 messages in thread
TopicAuthorDate
an attempt at a failsave bootloader            01/01/70 00:00      
   do you REALLY need that 1kB?            01/01/70 00:00      
      I'll have to think on that one - excellent idea            01/01/70 00:00      
         Flash uncertainty            01/01/70 00:00      
            I did not consider            01/01/70 00:00      
         extra jump and enough power            01/01/70 00:00      
            extra junp            01/01/70 00:00      
               no magic idea...            01/01/70 00:00      
                  maths problem            01/01/70 00:00      
                     I am absolutely sure...            01/01/70 00:00      
                     the penalty of an extra ljmp...            01/01/70 00:00      
   Dont ReWrite Page 0            01/01/70 00:00      
      not a PC ...            01/01/70 00:00      

Back to Subject List