ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.68k stars 2.98k forks source link

Nuvoton: Crash with ARM/ARMC6 ARM_LIB_STACK/ARM_LIB_HEAP in RTOS-less build #6899

Closed ccli8 closed 6 years ago

ccli8 commented 6 years ago

Description

In Nuvoton targets, ARM/ARMC6 port, its memory model is two-region with ARM_LIB_STACK/ARM_LIB_HEAP sections defined. In RTOS build, mbed-os-example-blinky can run successfully as usual. But in RTOS-less build, it crashes in C run-time initialization. To re-produce the crash, I test with the environment:

mbed-os-example-blinky 5.8.3

mbed-os 5.8.3

Target NUMAKER_PFM_NUC472 NUMAKER_PFM_M453 NUMAKER_PFM_M487 NUMAKER_PFM_NANO130

ARM Toolchain 5.24

ARMC6 Toolchain 6.10

.mbedignore (added under mbed-os-example-blinky directory for RTOS-less build)

*/test/*
mbed-os/rtos/*
mbed-os/events/*
mbed-os/features/FEATURE_LWIP/*
mbed-os/features/FEATURE_BLE/*
mbed-os/features/FEATURE_COMMON_PAL/mbed-client-randlib/*
mbed-os/features/FEATURE_COMMON_PAL/mbed-coap/*
mbed-os/features/FEATURE_COMMON_PAL/nanostack-hal-mbed-cmsis-rtos/*
mbed-os/features/FEATURE_COMMON_PAL/sal-stack-nanostack-eventloop/*
mbed-os/features/FEATURE_COMMON_PAL/mbed-trace/source/*
mbed-os/features/FEATURE_COMMON_PAL/mbed-trace/test/*
mbed-os/features/FEATURE_COMMON_PAL/nanostack-libservice/source/*
mbed-os/features/FEATURE_COMMON_PAL/nanostack-libservice/test/*
mbed-os/features/FEATURE_UVISOR/*
mbed-os/features/cellular/*
mbed-os/features/frameworks/*
mbed-os/features/nanostack/*
mbed-os/features/netsocket/*
mbed-os/features/storage/*
mbed-os/features/filesystem/littlefs/*
mbed-os/features/filesystem/fat/*
mbed-os/features/lorawan/*
mbed-os/features/nvstore/*
mbed-os/features/unsupported/*
mbed-cloud-client/update-client-hub/source/*
mbed-cloud-client/update-client-hub/modules/atomic-queue/*
mbed-cloud-client/update-client-hub/modules/control-center/*
mbed-cloud-client/update-client-hub/modules/firmware-manager/*
mbed-cloud-client/update-client-hub/modules/manifest-manager/*
mbed-cloud-client/update-client-hub/modules/pal-linux/*
mbed-cloud-client/update-client-hub/modules/source/*
mbed-cloud-client/update-client-hub/modules/source-http-socket/*
mbed-cloud-client/update-client-hub/modules/device-identity/*
mbed-cloud-client/update-client-hub/modules/lwm2m-mbed/*
mbed-cloud-client/update-client-hub/modules/monitor/*
mbed-cloud-client/update-client-hub/modules/pal-filesystem/*
mbed-cloud-client/update-client-hub/modules/pal-target-specific/*
mbed-cloud-client/update-client-hub/modules/source-http/*
mbed-cloud-client/update-client-hub/modules/source-manager/*
mbed-cloud-client/update-client-hub/modules/common/source/arm_uc_scheduler.c
mbed-cloud-client/mbed-client-pal/Test/*
mbed-cloud-client/mbed-client-pal/Utils/*
mbed-cloud-client/mbed-client-pal/Examples/*
mbed-cloud-client/mbed-client-pal/Source/PAL-Impl/pal_init.c
mbed-cloud-client/mbed-client-pal/Source/PAL-Impl/Modules/Crypto/*
mbed-cloud-client/mbed-client-pal/Source/PAL-Impl/Modules/Networking/*
mbed-cloud-client/mbed-client-pal/Source/PAL-Impl/Modules/RTOS/*
mbed-cloud-client/mbed-client-pal/Source/PAL-Impl/Modules/TLS/*
mbed-cloud-client/mbed-client-pal/Source/PAL-Impl/Modules/Update/*
mbed-cloud-client/mbed-client-pal/Source/PAL-Impl/Modules/Storage/FileSystem/*
mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/Lib_Specific/*
mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/FreeRTOS/*
mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/Linux/*
mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/mbedOS/Networking/*
mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/mbedOS/RTOS/*
mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/mbedOS/Update/*
mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/mbedOS/Storage/FileSystem/*
mbed-cloud-client/CMakeLists.txt
mbed-cloud-client/DOXYGEN_FRONTPAGE.md
mbed-cloud-client/Jenkinsfile
mbed-cloud-client/LICENSE
mbed-cloud-client/README.md
mbed-cloud-client/contributions.md
mbed-cloud-client/doxygen/*
mbed-cloud-client/factory-configurator-client/CMakeLists.txt
mbed-cloud-client/factory-configurator-client/DOXYGEN_FRONTPAGE.md
mbed-cloud-client/factory-configurator-client/common_includes.cmake
mbed-cloud-client/factory-configurator-client/crypto-service/*
mbed-cloud-client/factory-configurator-client/factory-configurator-client/*
mbed-cloud-client/factory-configurator-client/fcc-bundle-handler/*
mbed-cloud-client/factory-configurator-client/fcc-output-info-handler/*
mbed-cloud-client/factory-configurator-client/ftcd-comm-base/*
mbed-cloud-client/factory-configurator-client/ftcd-comm-serial/*
mbed-cloud-client/factory-configurator-client/ftcd-comm-socket/*
mbed-cloud-client/factory-configurator-client/key-config-manager/*
mbed-cloud-client/factory-configurator-client/logger/*
mbed-cloud-client/factory-configurator-client/mbed-trace-helper/*
mbed-cloud-client/factory-configurator-client/secsrv-cbor/*
mbed-cloud-client/factory-configurator-client/storage/*
mbed-cloud-client/factory-configurator-client/utils/*
mbed-cloud-client/factory-configurator-client/mbed-client-esfs/Test/*
mbed-cloud-client/factory-configurator-client/mbed-client-esfs/Tools/*
mbed-cloud-client/factory-configurator-client/mbed-client-esfs/source/esfs.c
mbed-cloud-client/factory-configurator-client/mbed-client-esfs/source/esfs_file_name.c
mbed-cloud-client/factory-configurator-client/mbed-client-esfs/source/esfs_performance.c
mbed-cloud-client/mbed-client/*
mbed-cloud-client/mbed-client-randlib/*
mbed-cloud-client/mbed-cloud-client/*
mbed-cloud-client/mbed-coap/*
mbed-cloud-client/mbed-trace/*
mbed-cloud-client/mbed_lib.json
mbed-cloud-client/nanostack-libservice/*
mbed-cloud-client/ns-hal-pal/*
mbed-cloud-client/sal-stack-nanostack-eventloop/*
mbed-cloud-client/source/*

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

ciarmcom commented 6 years ago

ARM Internal Ref: MBOTRIAGE-34

deepikabhavnani commented 6 years ago

Issue resolved by https://github.com/ARMmbed/mbed-os/pull/6985