From f48d722898552d2229d983dff6fab08a14cc13e6 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 7 Feb 2018 11:02:11 +0000 Subject: Fixed bug #916. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11466 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S | 9 +++++++++ readme.txt | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 @@ -52,6 +52,15 @@ /* Module pre-compile time settings. */ /*===========================================================================*/ +/** + * @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). -- cgit v1.2.3