Modify scatter file for ARM compiler to Enable auto reboot when hard fault occurs

hi,
i was enabling crash capture and got compiler errors that Crash RAM region is not defined in linker script.
Compile error with enabling crash report · Issue #10226 · ARMmbed/mbed-os · GitHub

I am using ARM compiler and it is having scatter file instead of linker file .
could you please help me how i can modify scatter file for crash RAM region.

REGARDS
hemant sharma

Hello,

From this example it looks like the change required in the scatter file is

RW_m_crash_data  (MBED_RAM_START + VECTORS_SIZE)  EMPTY MBED_CRASH_REPORT_RAM_SIZE { ; RW data
}

plus some updates to the #define earlier in the file.
If your target is already included in mbed, feel free to create a PR to add that support. :slight_smile:

Regards,