Skip to content

STM32H7: split RAM usage #11507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions platform/mbed_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ typedef struct _mbed_error_ctx {
int32_t is_error_processed;//once this error is processed set this value to 1
uint32_t crc_error_ctx;//crc_error_ctx should always be the last member in this struct
#endif
uint64_t dummy; // dummy to force data to be written in RAM
} mbed_error_ctx;

/** To generate a fatal compile-time error, you can use the pre-processor #error directive.
Expand Down
1 change: 1 addition & 0 deletions platform/source/mbed_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ WEAK MBED_NORETURN mbed_error_status_t mbed_error(mbed_error_status_t error_stat
core_util_critical_section_enter();
memcpy(report_error_ctx, &last_error_ctx, sizeof(mbed_error_ctx));
core_util_critical_section_exit();

//We need not call delete_mbed_crc(crc_obj) here as we are going to reset the system anyway, and calling delete while handling a fatal error may cause nested exception
#if MBED_CONF_PLATFORM_FATAL_ERROR_AUTO_REBOOT_ENABLED && (MBED_CONF_PLATFORM_ERROR_REBOOT_MAX > 0)
#ifndef NDEBUG
Expand Down