-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix lp1114 flash overflow issue #15076
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
Conversation
5535931
to
a391837
Compare
a391837
to
43784bc
Compare
- ROM size is required in callback_big and compliance printf greeentea test for finding out the number of test cases to be enabled to avoid flash overflow, but when we copy the "mbed-rom-size" config from index.json to targets.json causes the build failure for LPC1114 as MBED CLI1 expects that if any of the mem (ROM, RAM) configs are present in targets.json should have bootloader support, hence introducing new rom-size using "config" in LPC1114 in targets.json to generate MBED_CONF_TARGET_ROM_SIZE by Mbed CLI1 and Mbed CLI2 macro which can be used in the greentea test. - Add new rom-size config to the 15 targets which already have mbed_rom_size config in "targets.json"
…nary size The "minimal_printf" greentea test has test cases for the different data types (%d, %u, %x, %ld, %lu, %lx %llx) that require a minimum above 36kb ROM to build all test cases. LPC1114 target has only 32KB ROM memory, so these changes excluding 3 test cases of data types %lld, %llu, %llx to bring down to meet target minimum ROM size
43784bc
to
b712589
Compare
#define LLONG_MIN INT64_MIN | ||
#endif | ||
|
||
#define TEST_MIN_REQ_ROM_SIZE (36 * 1024) |
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.
Is 36 KiB enough to run the tests?
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.
Yes probably enough
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.
How do we know?
This pull request has automatically been marked as stale because it has had no recent activity. @rwalton-arm, @Patater, please complete review of the changes to move the PR forward. Thank you for your contributions. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
We are closing this pull request due to inactivity |
Summary of changes
mbed_rom_size
config in "targets.json"Impact of changes
With these changes, minimal_printf greentea test can avoid overflow ROM issue
Migration actions required
None.
Documentation
None.
Pull request type
Test results
Reviewers