Skip to content
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

Support override of memory_bank_config in mbed_app.json #381

Conversation

ccli8
Copy link

@ccli8 ccli8 commented Nov 15, 2024

Summary of changes

memory_bank_config can be defined in targets.json or custom_targets.json per-target, but cannot by application. This enables this override by adding target.memory_bank_config config in target_overrides section of mbed_app.json as usual.

Fix #370.


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

memory_bank_config can be defined in targets.json or custom_targets.json
per-target, but cannot by application. This enables this override by
adding "target.memory_bank_config" config in target_overrides section of
mbed_app.json as usual.
@multiplemonomials
Copy link
Collaborator

To be honest, I am not in love with how this adds a special exception to the processing of JSON files, something which is already full of strange logic and poorly documented. However, I think this adds a very useful feature, and I don't see another readily available option for doing this. So, after thinking about it a bit, I am good to merge this.

@multiplemonomials multiplemonomials merged commit cda8a9d into mbed-ce:master Nov 18, 2024
52 checks passed
@ccli8 ccli8 deleted the support_override_memory_bank_config_by_app branch November 18, 2024 03:07
@multiplemonomials
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relocate MCUboot enabled application
2 participants