flash/nor/stm32l4x: fix minor errors in flash write/async algo
[fw/openocd] / contrib / loaders / flash / stm32 / stm32l4x.S
index 9c49016df6641b5466d0dec19d656c03debed821..e0ce3cb34cfddba924610d5bb9fc5d8ce5309c23 100644 (file)
@@ -71,7 +71,7 @@ busy:
        ldr     r6, [r4, #STM32_FLASH_SR_OFFSET]
        tst     r6, #0x10000    /* BSY (bit16) == 1 => operation in progress */
        bne     busy            /* wait more... */
-       tst     r6, #0xfa       /* PGSERR | PGPERR | PGAERR | WRPERR | PROGERR*/
+       tst     r6, #0xfa       /* PGSERR | SIZERR | PGAERR | WRPERR | PROGERR | OPERR */
        bne     error           /* fail... */
 
        cmp     r5, r1          /* wrap rp at end of buffer */