Skip to content

Commit f1e1375

Browse files
committed
Fix for the missing retrieve error context function call.
- Add the function to retrieve error context after a fatal error is called at system initialisation for the bare metal profile.
1 parent 706625a commit f1e1375

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform/source/mbed_sdk_boot.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ int $Sub$$main(void)
128128
#endif
129129
mbed_toolchain_init();
130130
mbed_main();
131+
mbed_error_initialize();
131132
return $Super$$main();
132133
}
133134

@@ -162,6 +163,7 @@ void software_init_hook(void)
162163
int __wrap_main(void)
163164
{
164165
mbed_main();
166+
mbed_error_initialize();
165167
return __real_main();
166168
}
167169

@@ -180,6 +182,7 @@ void __mbed_init(void)
180182
mbed_stack_isr_size = (uint32_t)__section_size("CSTACK");
181183

182184
mbed_init();
185+
mbed_error_initialize();
183186
}
184187

185188
#endif

0 commit comments

Comments
 (0)