-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Description of defect
Setting the target overrides with "platform.stack-dump-enabled": 1 causes mbed-os to fail to build with the following error:
uint32_t msp_size = MAX(0, (int)INITIAL_SP - (int)msp_sp);
^
.\mbed-os\platform\source\mbed_error.c:521:41: error: use of undeclared identifier 'INITIAL_SP'
Maybe instead of defining INITIAL_SP for each target, it would be more correct to use the compiler's top-of-stack, e.g.:
ARMCC: Image$$ARM_LIB_STACK$$ZI$$Base
GCC: __StackTop
Target(s) affected by this defect ?
All STM targets.
Toolchain(s) (name and version) displaying this defect ?
ARMC6
What version of Mbed-os are you using (tag or sha) ?
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
MBed Studio 1.4.0
How is this defect reproduced ?
see above description
Metadata
Metadata
Assignees
Labels
No labels