Skip to content

Compile error with enabling crash report #10226

@masoudr

Description

@masoudr

Description

Hi,
I'm trying to set auto reboot for fault errors with help of this document. When I try to compile my code, I get the following compile error which seems to generate when enabling crash-capture-enabled in configuration.
I tested with mbed-os 5.11.5 and 5.12.0. My target platform is an STM32F407VG.
mbed_app.json:

    "target_overrides": {
        "*": {
            "platform.crash-capture-enabled": true,
            "platform.fatal-error-auto-reboot-enabled": true,
            "platform.error-reboot-max": 10,
        }

c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/cmsis/TARGET_CORTEX_M/mbed_fault_handler.o:../.\mbed-os\cmsis\TARGET_CORTEX_M/mbed_fault_handler.c:36: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/cmsis/TARGET_CORTEX_M/mbed_fault_handler.o: in function mbed_fault_handler':
../.\mbed-os\cmsis\TARGET_CORTEX_M/mbed_fault_handler.c:79: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/cmsis/TARGET_CORTEX_M/mbed_fault_handler.o: in function print_context_info':
../.\mbed-os\cmsis\TARGET_CORTEX_M/mbed_fault_handler.c:142: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/platform/mbed_error.o: in function mbed_error_initialize':
.././mbed-os/platform/mbed_error.c:235: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/platform/mbed_error.o: in function mbed_error':
.././mbed-os/platform/mbed_error.c:302: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/platform/mbed_error.o:.././mbed-os/platform/mbed_error.c:348: more undefined references to CRASH_DATA_RAM_START' follow
collect2.exe: error: ld returned 1 exit status
[ERROR] c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/cmsis/TARGET_CORTEX_M/mbed_fault_handler.o../.\mbed-os\cmsis\TARGET_CORTEX_M/mbed_fault_handler.c:36: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/cmsis/TARGET_CORTEX_M/mbed_fault_handler.o: in function mbed_fault_handler':
../.\mbed-os\cmsis\TARGET_CORTEX_M/mbed_fault_handler.c:79: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/cmsis/TARGET_CORTEX_M/mbed_fault_handler.o: in function print_context_info':
../.\mbed-os\cmsis\TARGET_CORTEX_M/mbed_fault_handler.c:142: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/platform/mbed_error.o: in function mbed_error_initialize':
.././mbed-os/platform/mbed_error.c:235: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/platform/mbed_error.o: in function mbed_error':
.././mbed-os/platform/mbed_error.c:302: undefined reference to __CRASH_DATA_RAM_START__' c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: BUILD/DISCO_F407VG/GCC_ARM-DEBUG/mbed-os/platform/mbed_error.o:.././mbed-os/platform/mbed_error.c:348: more undefined references to CRASH_DATA_RAM_START' follow
collect2.exe: error: ld returned 1 exit status

Issue request type

[x] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions