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

Bootloader support #305

Open
chrissnow opened this issue Jul 17, 2024 · 4 comments
Open

Bootloader support #305

chrissnow opened this issue Jul 17, 2024 · 4 comments

Comments

@chrissnow
Copy link

I don't think there is a way to implement bootloaders? mbed-tools was never updated to include it.

ARMmbed/mbed-tools#156
ARMmbed/mbed-tools#315

The give away is this in the configure

WARNING: You are attempting to override an undefined config parameter target.header_format.
It is an error to override an undefined configuration parameter. Please check your target_overrides are correct.
The parameter target.header_format will not be added to the configuration.
WARNING: You are attempting to override an undefined config parameter target.bootloader_img.
It is an error to override an undefined configuration parameter. Please check your target_overrides are correct.
The parameter target.bootloader_img will not be added to the configuration.

How complicated to implement this would it be? I could work around it if too complex.

There was once talk in mbed of supporting mcuboot as it has a lot of nice features.
https://docs.mcuboot.com/

@multiplemonomials
Copy link
Collaborator

I should have some updates about this within the next week or two! Currently the CMake build system (started by ARM, improved by us) does not support this, but it can, someday.

@multiplemonomials
Copy link
Collaborator

multiplemonomials commented Jul 19, 2024

However, I will admit, it's probably a 1-2 years away thing, not a few months thing, unless someone is interested in working on it now!

@multiplemonomials
Copy link
Collaborator

To provide an update, since the merging of the memory banks PR, progress is being made on this. It is now possible for Mbed targets to coeexist with a bootloader, if the target's linker script uses MBED_CONFIGURED_ROM_BANK_x_START/SIZE variables to size its flash region. If that is the case, you can use the memory_bank_config section in mbed_app.json to reconfigure your target's flash bank to a different size, enabling a bootloader to be installed at the start of flash.

However, the majority of targets still don't have linker scripts that make use of these defines.

@multiplemonomials
Copy link
Collaborator

@timIdeaTech ^

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

No branches or pull requests

2 participants