aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-02-07 11:02:11 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-02-07 11:02:11 +0000
commitf48d722898552d2229d983dff6fab08a14cc13e6 (patch)
tree1afa222630883e154de244b3eec473816fe18398
parent3f96242b42e7c45d56255980f7f6338d0db35041 (diff)
downloadChibiOS-f48d722898552d2229d983dff6fab08a14cc13e6.tar.gz
ChibiOS-f48d722898552d2229d983dff6fab08a14cc13e6.tar.bz2
ChibiOS-f48d722898552d2229d983dff6fab08a14cc13e6.zip
Fixed bug #916.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11466 35acf78f-673a-0410-8e92-d51de3d6d3f4
-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).