comparison src/external_flash.asm @ 278:dfac47ac2e1d

BUGFIX: There was a 1:4096 chance that a portion of a dive was not stored correctly resulting in download issues
author heinrichsweikamp
date Mon, 18 May 2015 21:25:56 +0200
parents 653a3ab08062
children 62c7af4795b0
comparison
equal deleted inserted replaced
277:24daa6523218 278:dfac47ac2e1d
142 write_byte_ext_flash_plus_h1: 142 write_byte_ext_flash_plus_h1:
143 movf temp1,W 143 movf temp1,W
144 rcall ext_flash_byte_write ; Write the byte 144 rcall ext_flash_byte_write ; Write the byte
145 bra incf_ext_flash_address_p1 ; +1 and return 145 bra incf_ext_flash_address_p1 ; +1 and return
146 146
147 global write_byte_ext_flash_plus_nocnt 147 global write_byte_ext_flash_plus_nodel ; Does NOT delete 4kB Page when required
148 write_byte_ext_flash_plus_nocnt: ; Write from WREG and increase address after write with banking at 0x200000 148 write_byte_ext_flash_plus_nodel: ; Write from WREG and increase address after write with banking at 0x200000
149 movwf temp1 ; store data 149 movwf temp1 ; store data
150 bra write_byte_ext_flash_plus2 150 bra write_byte_ext_flash_plus1 ; Ignore possible begin of 4kB page, there have been written 0xFF already
151 151
152 global write_byte_ext_flash_plus ; Write from WREG and increase address after write with banking at 0x200000 152 global write_byte_ext_flash_plus ; Write from WREG and increase address after write with banking at 0x200000
153 write_byte_ext_flash_plus: 153 write_byte_ext_flash_plus:
154 movwf temp1 ; store data 154 movwf temp1 ; store data
155 155