Skip to content

Commit d30bdbe

Browse files
committed
Enabled crash reporting for DISCO_F407VG target
1 parent b21c278 commit d30bdbe

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

platform/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@
198198
"NUCLEO_F411RE": {
199199
"crash-capture-enabled": true,
200200
"fatal-error-auto-reboot-enabled": true
201+
},
202+
"DISCO_F407VG": {
203+
"crash-capture-enabled": true,
204+
"fatal-error-auto-reboot-enabled": true
201205
}
202206
}
203207
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/device/TOOLCHAIN_GCC_ARM/STM32F407XG.ld

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
STACK_SIZE = MBED_BOOT_STACK_SIZE;
88

9+
M_CRASH_DATA_RAM_SIZE = 0x100;
10+
911
MEMORY
1012
{
1113
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
@@ -85,6 +87,18 @@ SECTIONS
8587
__etext = .;
8688
_sidata = .;
8789

90+
.crash_data_ram :
91+
{
92+
. = ALIGN(8);
93+
__CRASH_DATA_RAM__ = .;
94+
__CRASH_DATA_RAM_START__ = .; /* Create a global symbol at data start */
95+
KEEP(*(.keep.crash_data_ram))
96+
*(.m_crash_data_ram) /* This is a user defined section */
97+
. += M_CRASH_DATA_RAM_SIZE;
98+
. = ALIGN(8);
99+
__CRASH_DATA_RAM_END__ = .; /* Define a global symbol at data end */
100+
} > RAM
101+
88102
.data : AT (__etext)
89103
{
90104
__data_start__ = .;

0 commit comments

Comments
 (0)