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 08:37
Read: times


 
#123806 - problems with interrupts in IAP
Responding to: ???'s previous message
Kelvin,

You should've mention that this is a continuation of a discussion on the FlashMagic forum: http://www.esacademy.com/software/...037&t=3037

The problem is, that during IAP the 0000h-1FFFh code memory is switched to Block1, which contains the bootloader. There are no provisions in the default bootloader for the interrupts; the vector addresses are occupied by bootloader code.

As we discussed there, the relevant Philips documentation is... ehm... insufficient in this respect; so you cannot get other than recommendations here. And, as I mentioned, you can start from the SST documentation, where the IAP details (registers, programming procedures) are described in sufficent detail (again, no guarantee that the SST documentation will apply to ALL Philips P89V51xD2).

So, to make our story short, you have the following options:
  • make provisions that you won't receive bytes via serial during IAP (I doubt you can do that reasonably, otherwise you most probably won't ask at all)
  • disable interrupts during IAP and hope you won't lose any byte (as the programming times are not specified in Philips' documentation, some risk is involved, too)
  • 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
  • ask NXP (exPhilips) to make the modification mentioned above for you (additional question: how many millions of their parts are you buying per month? :-)
  • program the received bytes into Block 1 (where te bootloader sits - most of that 8kB (around 6kB) space is occupied by softICE, which you won't use in the application anyway).
    Viability of this solution depends on the nature of the data and the application - can you tell us more on this?
  • something else I missed

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