Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with ds30BootLoader and 16F887 [solved]
#8
Hi,
I am sorry about the delay. Unfortunately I don't have any PIC16F8xx to try on.
Do you use any code or write protection?
Which voltage do you run on?

Does it work if you remove write verification?
Replace
Code:
        ;----------------------------------------------------------------------
        ; Write complete, verify row
        ;----------------------------------------------------------------------    
verword
        decf    EEADRL_            ;bank 2/3
        ; Read word
        banksel EECON1_        
        ifdef HAS_EE    
            bsf        EECON1_, EEPGD    ;bank 3
        endif
        bsf        EECON1_, RD        ;bank 3
        nop
        nop
        ; Compare high byte    
        decf    FSR_
        movfw    INDF_
        andlw    0x3F            ;maybe we should only compare low 6 bits?
        banksel    EEDATH_
        subwf    EEDATH_            ;bank 2/3
        btfss    STATUS, Z
        goto    verfail
        ; Compare low byte            
        decf    FSR_
        movfw    INDF_
        subwf    EEDATL_            ;bank 2/3
        btfss    STATUS, Z
        goto    verfail
        ; Loop?
        decfsz     rowcnt2
        goto     verword    
        ; Verify succesfull
        goto     Main
With
Code:
        ;----------------------------------------------------------------------
        ; Write complete, verify row
        ;----------------------------------------------------------------------    
verword
                goto     Main
Reply


Messages In This Thread
RE: Problem with ds30BootLoader and 16F887 - by Mikael Gustavsson - 2011-12-26, 13:19:11

Forum Jump:


Users browsing this thread: 2 Guest(s)