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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/08/06 09:14
Read: times


 
#123904 - how does address vector can be copied into Block1
Responding to: ???'s previous message
Hi guys, thanks for all the constructive replies.

I probably can solve the problem, by adding a simple handshaking between pc and mcu. After pc has sent a set of protocol to mcu, pc would hold the next protocol, until it has received ACK reply from mcu. And the mcu once receive the protocol from pc, The mcu can then safely execute IAP routine, mcu would only send the ACK to pc after it has done the IAP routine. so the process can be continued ..

I could use EEPROM to store the data so, that's would be no IAP involve anyway.

Jan, you were right, the actual fact is the timing of serial data sent from pc is unpredictable, we can't change the pc module too. And the internal flash storage is the only option I have.

Jan said:
modify the bootloader so that the interrupt vectors can be used and copy your interrupt service routines into Block1 so they will continue to run during IAP


I'm looking into using the option that were suggested by Jan. Try to copy the interrupt vertor into Block1.

But how does address vector can be copied into Block1? Since all the while we only program the code in Block0, IAP also update the data in Block0. Block1 is 'invisible'!

Pls advise.

Kelvin

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