nrf5: Comment the flash loader
[openocd.git] / contrib / loaders / flash / nrf5 / nrf5.S
index 6f7ed9ae7953757a3e8e9b408cb775b2e982434a..53551a2c2cea7f398ea294b0caa4142fc317bd6a 100644 (file)
        .global _start
 _start:
 wait_fifo:
+       // Kick the watchdog
        str     r6, [r7, #0]
+       // Load write pointer
        ldr     r5, [r1, #0]
+       // Abort if it is NULL
        cmp     r5, #0
        beq.n   exit
+       // Load read pointer
        ldr     r4, [r1, #4]
+       // Continue waiting if it equals the write pointer
        cmp     r4, r5
        beq.n   wait_fifo
+       // Copy one word from buffer to target, and increment pointers
        ldmia   r4!, {r5}
        stmia   r3!, {r5}
+       // If at end of buffer, wrap back to buffer start
        cmp     r4, r2
        bcc.n   no_wrap
        mov     r4, r1
        adds    r4, #8
 no_wrap:
+       // Update read pointer inside the buffer
        str     r4, [r1, #4]
+       // Deduce the word transferred from the byte count
        subs    r0, #4
+       // Start again
        bne.n   wait_fifo
 exit:
+       // Wait for OpenOCD
        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)