diff options
author | Christian Pointner <equinox@mur.at> | 2013-07-26 15:10:14 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-07-26 15:10:14 +0000 |
commit | afc62937c6602ccce0ae1d1c49c85d3f3e5505a7 (patch) | |
tree | 3a83f9af7d1bd55624602b37acd5ec1ae86f4f62 /software/pic.bootloader/cmds-16f887.inc | |
parent | yet another downloader update (diff) |
updated to new PIC bootloader with support for SPI and 16F1847
git-svn-id: https://svn.spreadspace.org/mur.sat@811 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/pic.bootloader/cmds-16f887.inc')
-rw-r--r-- | software/pic.bootloader/cmds-16f887.inc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/software/pic.bootloader/cmds-16f887.inc b/software/pic.bootloader/cmds-16f887.inc index 144150e..25889c3 100644 --- a/software/pic.bootloader/cmds-16f887.inc +++ b/software/pic.bootloader/cmds-16f887.inc @@ -2,7 +2,7 @@ ;; spreadspace pic utils ;; ;; - ;; Copyright (C) 2011 Christian Pointner <equinox@spreadspace.org> + ;; Copyright (C) 2011-2013 Christian Pointner <equinox@spreadspace.org> ;; ;; This file is part of spreadspace pic utils. ;; @@ -99,19 +99,16 @@ write_flash_segment_loop nop bcf EECON1,WREN bcf STATUS,RP0 - incfsz EEADR,f ; increment flash address - goto write_flash_segment_next - incf EEADRH,f -write_flash_segment_next + incf EEADR,f ; increment flash address (no need to increment EEADRH -> flash bondaries!) decfsz cnt,f goto write_flash_segment_loop bsf STATUS,RP0 - clrw ; check if a write error occured + movlw E_OK ; check if a write error occured btfsc EECON1,WRERR movlw E_FLASH_WERR bcf STATUS,RP1 bcf STATUS,RP0 - movwf combuff + .2 ; = E_OK + movwf combuff + .2 ; = E_OK or Write Error movlw .1 ; bytes to send call send_answer goto wait_new_cmd |