target: cortex_m: Fix a typo VECTRESET
authorYasushi SHOJI <yashi@spacecubics.com>
Sun, 29 Aug 2021 09:27:52 +0000 (18:27 +0900)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 4 Sep 2021 07:24:50 +0000 (07:24 +0000)
According to ARM Cortex M3 technical reference manual, it's
"VECTRESET" instead of "VECRESET".

Change-Id: Iff5534beac2b313cee6da3252d76d4d44a61eeed
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6508
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/cortex_m.c

index f3c8527cf3c81f7640e2d6533e26ea28cb6b1f3b..08f2eb91176c536e190240874f84bc87f9a667d0 100644 (file)
@@ -1243,7 +1243,7 @@ static int cortex_m_assert_reset(struct target *target)
                retval = ERROR_OK;
        } else {
                /* Use a standard Cortex-M3 software reset mechanism.
-                * We default to using VECRESET as it is supported on all current cores
+                * We default to using VECTRESET as it is supported on all current cores
                 * (except Cortex-M0, M0+ and M1 which support SYSRESETREQ only!)
                 * This has the disadvantage of not resetting the peripherals, so a
                 * reset-init event handler is needed to perform any peripheral resets.