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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/31/06 18:55
Read: times


 
#130261 - Solved - My ISP issues
Responding to: ???'s previous message
I found that I should have read the data sheets, and actually understood the NoTouch code more closely as the PGM_MTP is a call to the IAP, to write the bootstat register, this is fine. but what I found was that even though the bootstat was set it still wasn't jumping to the ISP routine. so I have added another call to PGM_MTP to write the bootvec register with 0x1F, this will ensure that the uController will boot at the ISP address.

Code is below, thanks for all this, I have post at Flashmagic now as well about the erase and possible bugs in FlashMagic, any thoughts on this would be appreciated

http://forum.flashmagictool.com/index.php...pic=3249.0

The Modified NoTouch code is below for those that are interested.


Regards Marshall


$NOMOD51
$include (REG922.INC)
 
 NAME NOTOUCH925
 
 PGM_MTP    EQU 0FF03H
 
 ?PR?no_touch925?NOTOUCH925     SEGMENT CODE
    public no_touch925
   
   ; void no_touch925(){
   
    RSEG ?PR?no_touch925?NOTOUCH925
no_touch925:
    push    IEN0            ;save EA Status
    clr     EA              ;disable int's
    mov     R0,     #0FFH   ;IAP authourisation key first
    mov     @R0,    #96H
    mov     A,      #02
    mov     R5,     #01     ;write bootstat with 01H
    mov     R7,     #03
    lcall   PGM_MTP
    
    ;mkb added boot vector for the ISP (31-Dec-2006) 
    mov     R0,     #0FFH   ;IAP authorisation key first
    mov     @R0,    #96H
    mov     A,      #02
    mov     R5,     #1FH     ;write bootvec with 1FH
    mov     R7,     #02
    lcall   PGM_MTP
    
    
    pop     IEN0            ;restore EA status
    RET
    
    ;}
    
; END of no_touch925
  
  END



List of 9 messages in thread
TopicAuthorDate
89lpc922 programing            01/01/70 00:00      
   NoTouch            01/01/70 00:00      
      Typo            01/01/70 00:00      
      89lpc922 programing            01/01/70 00:00      
         ISP and IAP            01/01/70 00:00      
            89lpc programing            01/01/70 00:00      
   I to am having issues with ISP            01/01/70 00:00      
      Solved - My ISP issues            01/01/70 00:00      
         ISP and IAP Understanding LPC925            01/01/70 00:00      

Back to Subject List