mboot versioning #15768
Unanswered
victorallume
asked this question in
STM32 / Pyboard
mboot versioning
#15768
Replies: 2 comments 2 replies
-
I've created a PR at #15874 |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can access flash memory directly using the machine module. For example, you can use the machine.mem32 or machine.mem8 to read specific memory addresses. You can add a function to read from the address where the version is stored. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to determine what version of mboot is on a device from within micropython? The
fwupdate.py
file allows me to check if mboot is the same a supplied dfu file, but I can't find anything about versioning (as far as I can tell there is no versioning of mboot other than the micropython version it comes from).I ask this as with the update of LFS2 in micropython v1.22.0, mboot needs to be updated first to a version that can handle the newer fs format. So as part of our OTA process, we want to check if mboot is greater than a certain version.
If this is not currently possible, what would be involved in doing this? Store the version in a known flash location, and have micropython read this?
Beta Was this translation helpful? Give feedback.
All reactions