[Gen 3] 256KB application binary support when flashing over DFU #610
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.
Description
In preparation for 3.1.0-rc.1 Device OS release with support for 256KB (vs 128KB prior) application binaries, CLI needs to be updated to take destination address when performing DFU flashing from the binary module prefix, instead of using a hardcoded location.
This PR also bumps
binary-version-reader
dependency to the version with particle-iot/binary-version-reader#41, which improves how module prefixes are parsed.I have not updated
src/lib/deviceSpecs/specifications.js
with the new location of the user application binary for Gen 3 platforms. This new location is only true for devices running >= 3.1.0, but it should not matter much anyway given that we are taking the destination address from the actual binary, which should cover both older (128KB) and newer (256KB) applications.@busticated Any tests that we can update to validate this change?
How to Test
tracker-tinker-large@3.1.0-alpha.1.bin
with current version of CLI over DFU. It should fail withserial inspect
, it should report 256KB application (note the '262144 bytes max size)Related Issues / Discussions
Completeness