sys/suit/v4: switch to nanocbor#12562
Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom Oct 24, 2019
Merged
Conversation
Contributor
|
Hmm.. I'm getting an error when validating the digest... investigating |
Contributor
Author
I'm getting the same now. I must have messed something up while polishing. Invastigating, too... |
Contributor
Author
|
I think I got it. I've accidentally added an error return for the "no handler found" case. |
fjmolinas
reviewed
Oct 24, 2019
Contributor
fjmolinas
left a comment
There was a problem hiding this comment.
Test still working (if the correct source address is chosen), minor comments otherwise all good. ~1kB less as well :)
Image start address: 0x00001100
Header chksum: 0x69e1c0a7
[auto_init_netif] initializing ethos #0
----> ethos: hello received
Failed to send flush request: Operation not permitted
gnrc_uhcpc: Using 5 as border interface and 0 as wireless interface.
gnrc_uhcpc: only one interface found, skipping setup.
main(): This is RIOT! (Version: 2020.01-devel-301-gb91d5-pr-12562)
RIOT SUIT update example application
running from slot 0
TEST PASSED
Co-authored-by: Francisco <femolina@uc.cl>
2d41d9b to
4ccb4e5
Compare
Contributor
Author
|
Contributor
|
btw what was the reason to convert SUIT to NanoCBOR instead of converting libcose to tinycbor? |
Contributor
Author
|
nanocbor has a much nicer API and uses less code. |
Contributor
|
It also has a lot more bugs and doesn't implement the full CBOR specification… |
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.
Contribution description
This PR changes suit/v4 to use nanocbor instead of tinycbor. The former was already used by suit's dependency libcose, causing two cbor parsers to be used.
Code size goes down from 75964b 74616b in nrf52dk.
Most of the work was done by @fjmolinas. I just fixed some bugs and put the diff into PR shape.
Testing procedure
WARNING the test will currently fail without #12408 and #12458 merged (same as on master).
Confirm the examples/suit_example test application runs successful.
Issues/PRs references