Repository navigation
feat: support payloads up to 65,528 bits - #7
Merged
Merged
Conversation
Flash parameter records need to grow beyond CAN-FD frame capacity. Keep transport limits in callers while retaining descriptor layout, field conversions, wire bytes and the 64-bit default buffer. Use a shared maximum and overflow-safe field validation. Check every legal field geometry against an independent model and compare legacy pack/unpack results with the pinned 2.4.0 implementation in CI. Validation: native and simulated-MAU sanitizers, 100% line/branch coverage, zero misch findings or new deviations, and TI C2000 22.6.2/25.11.1 release compilation at default and maximum buffer sizes. Target execution remains a consumer integration check. Closes #6
Owner
Author
|
Final review completed against issue #6 and the pre-extension source.
CI run 34221909897 passed all six jobs, including Linux/macOS sanitizer and legacy comparison tests, both buffer overrides, release compilation and the 100% line/branch coverage gate. Local Merging the tested head |
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.
Why
The PEBB persisted parameter image is already 496 bits. Calibration fields will exceed the codec's CAN-FD-derived ceiling, although the flash record has room. A record is not a CAN frame.
Closes #6.
Related: https://github.com/Next-Gen-MP/pebb-firmware/issues/178. A cross-reference comment records the agreed alternative to consumer-side chunking.
Change
PPACK_MAX_PAYLOAD_BITSand use it for runtime and compile-time validation.Callers must allocate sufficient buffers and enforce transport limits. Valid sizes above 512 bits no longer fail before buffer access. Error rollback, CRC, atomic record publication and format-version policy remain outside ppack.
Verification
Local checks passed:
misch run0.4.0 reports zero findings.misch deviationsvalidates all existing deviations. No new deviations.git diff --checkpass.The verification record gives the range argument and reproduction commands. It is not a machine-checked formal proof. No target hardware or instruction-set simulator was available for execution. The consumer still needs target runtime and whole-record recovery tests.
Review
Reviewed the change against issue #6 for correctness, repository standards and scope. No unresolved findings. No pre-commit configuration is present.
Merge only after the Linux/macOS sanitizer and compatibility jobs, both override builds, release build and 100% coverage gate pass.