jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / contrib / loaders / flash / stm32 / stm32l4x.S
diff --git a/contrib/loaders/flash/stm32/stm32l4x.S b/contrib/loaders/flash/stm32/stm32l4x.S
deleted file mode 100644 (file)
index 9c49016..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2010 by Spencer Oliver                                  *
- *   spen@spen-soft.co.uk                                                  *
- *                                                                         *
- *   Copyright (C) 2011 Ã˜yvind Harboe                                      *
- *   oyvind.harboe@zylin.com                                               *
- *                                                                         *
- *   Copyright (C) 2015 Uwe Bonnes                                         *
- *   bon@elektron.ikp.physik.tu-darmstadt.de                               *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.                                        *
- ***************************************************************************/
-
-       .text
-       .syntax unified
-       .cpu cortex-m4
-       .thumb
-
-/*
- * Params :
- * r0 = workarea start, status (out)
- * r1 = workarea end
- * r2 = target address
- * r3 = count (64bit words)
- * r4 = flash base
- *
- * Clobbered:
- * r5   - rp
- * r6/7 - temp (64-bit)
- * r8   - wp, tmp
- */
-
-#define STM32_FLASH_CR_OFFSET  0x14    /* offset of CR register in FLASH struct */
-#define STM32_FLASH_SR_OFFSET  0x10    /* offset of SR register in FLASH struct */
-
-#define STM32_PROG      0x1    /* PG */
-
-       .thumb_func
-       .global _start
-_start:
-wait_fifo:
-       ldr     r8, [r0, #0]    /* read wp */
-       cmp     r8, #0          /* abort if wp == 0 */
-       beq     exit
-       ldr     r5, [r0, #4]    /* read rp */
-       subs    r6, r8, r5      /* number of bytes available for read in r6*/
-       itt     mi              /* if wrapped around*/
-       addmi   r6, r1          /* add size of buffer */
-       submi   r6, r0
-       cmp     r6, #8          /* wait until 8 bytes are available */
-       bcc     wait_fifo
-
-       ldr     r6, =STM32_PROG
-       str     r6, [r4, #STM32_FLASH_CR_OFFSET]
-       ldrd    r6, [r5], #0x08 /* read one word from src, increment ptr */
-       strd    r6, [r2], #0x08 /* write one word to dst, increment ptr */
-       dsb
-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*/
-       bne     error           /* fail... */
-
-       cmp     r5, r1          /* wrap rp at end of buffer */
-       it      cs
-       addcs   r5, r0, #8      /* skip loader args */
-       str     r5, [r0, #4]    /* store rp */
-       subs    r3, r3, #1      /* decrement dword count */
-       cbz     r3, exit        /* loop if not done */
-       b       wait_fifo
-error:
-       movs    r1, #0
-       str     r1, [r0, #4]    /* set rp = 0 on error */
-exit:
-       mov     r0, r6          /* return status in r0 */
-       bkpt    #0x00
-
-       .pool
-

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)