1 /***************************************************************************
2 * Copyright (C) 2014 by Angus Gratton *
3 * Derived from stm32f1x.S:
4 * Copyright (C) 2011 by Andreas Fritiofson *
5 * andreas.fritiofson@gmail.com *
6 * Copyright (C) 2013 by Roman Dmitrienko *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 * This program is distributed in the hope that it will be useful, *
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17 * GNU General Public License for more details. *
19 * You should have received a copy of the GNU General Public License *
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
21 ***************************************************************************/
28 /* Written for NRF51822 (src/flash/nor/nrf51.c) however the NRF NVMC is
29 * very generic (CPU blocks during flash writes), so this is actually
30 * just a generic word-oriented copy routine for Cortex-M0 (also
31 * suitable for Cortex-M0+/M3/M4.)
34 * arm-none-eabi-gcc -c cortex-m0.S
37 * arm-none-eabi-objdump -o cortex-m0.o
39 * Thanks to Jens Bauer for providing advice on some of the tweaks.
43 * r0 - byte count (in)
53 ldr r5, [r1, #0] /* read wp */
54 cmp r5, #0 /* abort if wp == 0 */
56 ldr r4, [r1, #4] /* read rp */
57 cmp r4, r5 /* wait until rp != wp */
60 ldmia r4!, {r5} /* "*target_address++ = *rp++" */
63 cmp r4, r2 /* wrap rp at end of work area buffer */
66 adds r4, #8 /* skip rp,wp at start of work area */
68 str r4, [r1, #4] /* write back rp */
69 subs r0, #4 /* decrement byte count */
70 bne wait_fifo /* loop if not done */
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)