aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S9
-rw-r--r--readme.txt4
2 files changed, 12 insertions, 1 deletions
diff --git a/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S b/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
index 932550d72..453a9e64c 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+++ b/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
@@ -53,6 +53,15 @@
/*===========================================================================*/
/**
+ * @brief Enforces initialization of MSP.
+ * @note This is required if the boot process is not reliable for whatever
+ * reason (bad ROMs, bad bootloaders, bad debuggers=.
+ */
+#if !defined(CRT0_VTOR_INIT) || defined(__DOXYGEN__)
+#define CRT0_FORCE_MSP_INIT TRUE
+#endif
+
+/**
* @brief VTOR special register initialization.
* @details VTOR is initialized to point to the vectors table.
*/
diff --git a/readme.txt b/readme.txt
index f36cd96ed..7ec292323 100644
--- a/readme.txt
+++ b/readme.txt
@@ -167,7 +167,9 @@
dependencies and configuration directories. This makes possible
to have multiple non-conflicting makefiles in the same project.
Updated the various platform.mk implementing "smart build" mode.
-- EX: Improved MEMS drivers (bug #915)(backported to 17.6.4).
+- STP: Fixed CRT0_FORCE_MSP_INIT flag not defaulted in crt0_v7m.S (bug #916)
+ (backported to 17.6.4).
+- EX: Improved MEMS drivers (bug #916)(backported to 17.6.4).
- HAL: Improved peripheral classes (bug #915)(backported to 17.6.4).
- HAL: Fixed more instances of bug #843 (bug #914)(backported to 17.6.4
and 16.1.10).