diff 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
line wrap: on
line diff
--- a/src/external_flash.asm	Mon May 18 14:24:50 2015 +0200
+++ b/src/external_flash.asm	Mon May 18 21:25:56 2015 +0200
@@ -144,10 +144,10 @@
 	rcall		ext_flash_byte_write	; Write the byte
 	bra			incf_ext_flash_address_p1	; +1 and return
 
-    global  write_byte_ext_flash_plus_nocnt
-write_byte_ext_flash_plus_nocnt:       ; Write from WREG and increase address after write with banking at 0x200000
+    global  write_byte_ext_flash_plus_nodel ; Does NOT delete 4kB Page when required
+write_byte_ext_flash_plus_nodel:       ; Write from WREG and increase address after write with banking at 0x200000
     movwf		temp1					; store data
-    bra         write_byte_ext_flash_plus2
+    bra         write_byte_ext_flash_plus1  ; Ignore possible begin of 4kB page, there have been written 0xFF already
 
 	global	write_byte_ext_flash_plus	; Write from WREG and increase address after write with banking at 0x200000
 write_byte_ext_flash_plus: