-
Notifications
You must be signed in to change notification settings - Fork 34
Add and fix size restrictions to targets #121
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
Thanks for your changes. |
run-ci |
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.
Look good.
@MarceloSalazar could you get some more reviewers for this?
877804e
to
823bcc6
Compare
Thanks - looks good |
yes, this is purely compile-time check to verify that the application does not overflow to bank2. |
@esajaa rebase & merge. |
Used following target.restrict_size calculation method: For 1MB bank: Hex 0x100000 (=Dec 1024 * Dec 1024) - target.app_offset = target.restrict_size For 512KB bank: Hex 0x080000 (=Dec 512 * Dec 1024) - target.app_offset = target.restrict_size
4675b26
to
2311744
Compare
build-only |
Summary of changes
Added size restrictions to several boards, and also fixed some previous ones that were too large or too small.
Used target.restrict_size calculation method:
For 1MB bank: Hex 0x100000 (=Dec 1024 * Dec 1024) - target.app_offset = target.restrict_size
For 512KB bank: Hex 0x080000 (=Dec 512 * Dec 1024) - target.app_offset = target.restrict_size
[x] I confirm this contribution is my own and I agree to license it with Apache 2.0.
[x] I confirm the moderators may change the PR before merging it in.
For new board enablements only:
[] I confirm the board is Mbed Enabled and passes the Mbed Enabled test set.
[] I confirm the contribution has been tested properly and the tests results for TESTS are attached.
[] I confirm
mbed-os.lib
andmbed-cloud-client.lib
hashes or the content in foldersmbed-os
andmbed-cloud-client
were not modified in order to pass the tests.