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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/07/06 15:33
Read: times


 
#123845 - serial IAP?
Responding to: ???'s previous message
Just to make the story really shorter:

  • IAP, whatever it abbreviates, is a shorthand for self-programming, i.e. the micro is able to program it's own flash, in any form and way, from any data source
  • ISP, whatever it abbreviates, is a shorthand for programming the flash of a micro from an ourside source supplying data via some sort of serial (few-line) connection; in context of P89V52RD2 it means programming of FLASH via UART
  • in P89V51RD2, the default bootloader performs ISP through receiving data via UART and performing IAP with them
  • the default bootloader (plus the recommended counterpart in PC, FlashMagic) implements a protocol, where no unexpected data arrives via UART while the flash bytes are erased/programmed; in the default bootloader the UART receiver is polled (no interrupt necessary); this process appears to be quite reliable
  • the OP's problem is, that he cannot influence the inflow of data via UART, so during IAP flash programming (in fact, most probably during erasing, as byte programming might be quite fast) data might be lost; and if interrupts are employed, software crashes due to no support of interrupts in the default bootloader
  • the bootloader is in (secondary) FLASH and can be rewritten, e.g. by a version which would support interrupts
  • the Philips datasheet does not contain enough information to perform this; but the P89V51D2 appears to be identical with SST89E516RD2 - and the datasheet of that contains the needed information

Jan Waclawek


List of 23 messages in thread
TopicAuthorDate
IAP and serial port receiving problem            01/01/70 00:00      
   Who knows!            01/01/70 00:00      
      IAP and serial port receiving problem            01/01/70 00:00      
         Need a better protocol!            01/01/70 00:00      
            if it's e.g. a datalogger, he can't change it...            01/01/70 00:00      
               Jan, do you really want            01/01/70 00:00      
                  there is no mystery, just information or lack of            01/01/70 00:00      
            DIsable            01/01/70 00:00      
               Partial solution            01/01/70 00:00      
                  If i            01/01/70 00:00      
                     Not necessarily            01/01/70 00:00      
   problems with interrupts in IAP            01/01/70 00:00      
      if and if not            01/01/70 00:00      
   Did not someone tell, ...            01/01/70 00:00      
      as in life, only if you follow the rules            01/01/70 00:00      
         Oh yes it does!            01/01/70 00:00      
         What I meant...            01/01/70 00:00      
            it does, when he does not interrupt            01/01/70 00:00      
      serial IAP?            01/01/70 00:00      
   If data is coming from PC            01/01/70 00:00      
      I doubt the OP would ask if he could            01/01/70 00:00      
         how does address vector can be copied into Block1            01/01/70 00:00      
            block1            01/01/70 00:00      

Back to Subject List