-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix crash capture feature for nuvoton #10349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Nuvoton targets, CSTACK
is placed at start of IRAM region to detect stack overflow by hardware error. Would you change crash data to other location like:
M487.icf:
define symbol __ICFEDIT_region_IRAM_start__ = 0x20000000;
define symbol __ICFEDIT_region_IRAM_end__ = 0x20027F00 - 1;
define symbol __region_CRASH_DATA_RAM_start__ = 0x20027F00;
define symbol __region_CRASH_DATA_RAM_end__ = 0x20028000 - 1;
TARGET_NU_XRAM_SUPPORTED/NUC472_442.icf:
TARGET_NU_XRAM_UNSUPPORTED/NUC472_442.icf:
define symbol __ICFEDIT_region_IRAM_start__ = 0x20000000;
define symbol __ICFEDIT_region_IRAM_end__ = 0x2000FF00 - 1;
define symbol __region_CRASH_DATA_RAM_start__ = 0x2000FF00;
define symbol __region_CRASH_DATA_RAM_end__ = 0x20010000 - 1;
Hi I still think that this crash feature support should be defined for ALL targets. So CRASH_DATA_SIZE should not be part of icf, ld and sct files, Regards, |
Ideally, that should be the case. However, it's not in the scope of current PR
we need to carve out memory to store the crash context and report it after reset. @jeromecoutant can you please elaborate on suggested improvement. |
f2baf6d
to
3769ec4
Compare
@ccli8 have made the changes suggested. |
There should not be any impact on RAM when crash feature is disabled. |
@jeromecoutant To keep this moving, can you create an issue about this? |
CI started |
Test run: FAILEDSummary: 2 of 7 test jobs failed Failed test jobs:
|
Failures are related to the changes - linker error about undefined crash symbols |
Fixed the CI failure for GCC_ARM and ARM toolchain |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Exporters restarted - internal symlink error |
Description
This should fix #9069, updated to created a memory region instead of block.
Tested on a set of devices, instead of just one like #10311
Pull request type
Reviewers
@SenRamakri @ccli8
Release Notes