-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
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. |
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! |
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 However, the majority of targets still don't have linker scripts that make use of these defines. |
Okay, what features should the MbedCE bootloader have?
From my point of view the first one is very simple and enough for most of applications.
|
@JohnK1987 I've only done one mbed project with bootloader support and it used the managed option, and then only using minimal managed support. Basically I just used the It is/was an STM32L433 and STM32H743 dual processor design using a common custom targeted bootloader, where each micro had it's own Littlefilesystem2 NOR Flash. The app bin file and a bootloader trigger descriptor file (bin file name pointer and checksum) would be put in the root or predefined directory for a reboot/power-on update. This design didn't get out of development and by no means was complete. It required an embedded CLI in the app binary to load the files from any of a number of CLI enabled ports. I only recount this to give you an idea where I got to and this was by no means where I wanted it or complete. I have only scratched the surface on MCUboot which I see has been brought up a few times and looks interesting. I'm all for keeping the overall design simple, but effective for most cases, and better yet an example project along the lines of the custom targets example. Some form of checksum and size checking on the app binary would be useful and maybe a mechanism for the the application to find the bootloader revision. I wish I could give this some gray matter time but got a little busy as of late and the mbed-os to mbed-ce port of the above project got put on hold. |
@zhiyong-ft has contacted me about restoring mcuboot support, and we are going to try and work together on this effort. I at least got mcuboot building! https://github.com/mbed-ce/mbed-mcuboot-bootloader |
Ok, that mean the mcuboot will be official bootdloader for MbedCE and no other solution is necessary, right? But that also mean someone will must update mbed port with every mcuboot release, I suppose. |
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
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/
The text was updated successfully, but these errors were encountered: