fix: embed full ship version in .file_name region - #90
Open
AlexKlimaj wants to merge 1 commit into
Open
Conversation
EEPROM still stores only major/minor (3.0) for protocol compatibility. The configurator could not show ARK patch releases (3.0.1, 3.0.2) after flash because those fields never include VERSION_PATCH. Embed `MAJOR.MINOR.PATCH[-TAG]` as a second C-string after FILE_NAME in the 32-byte .file_name flash region so tools that already read that area can display the full ship version (e.g. 3.0.2-ark) without changing the EEPROM layout. Older tools still only decode up to the first NUL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ARK ship releases use
VERSION_PATCHin artifact names (3.0.2-ark), but EEPROM only stores major/minor (3.0) for AM32 protocol compatibility. The configurator therefore always showed 3.0 after flash.Change
Embed the full ship string as a second C-string in the 32-byte
.file_nameregion:FILE_NAME(decode up to first NUL).Companion
ark32-configurator: show patch version + match 3.0.x assets
Test plan
ARK_4IN1_F051;strings/ hex dump of.file_nameshows board name +3.0.2-ark.file_namenon-empty)3.0.2-ark