-
Notifications
You must be signed in to change notification settings - Fork 765
boot_serial: port CBOR encoding to use cddl-gen #997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
55a3430
to
011a96c
Compare
@oyvindronningstad Do you have test manifest PR to Zephyr that I can fetch to test this? |
@de-nordic Try this: zephyrproject-rtos/zephyr#35098 |
Is it working for you? I am building this with CONFIG_MCUBOOT_SERIAL=y, CONFIG_UART_CONSOLE=n, CONFIG_MULTITHREADING=y (to make it compile) and the mcumgr hands trying to communicate to device. |
@de-nordic I'm able to transfer using the provided branch.
I'm on nRF9160 |
Okay, so seems that upload is ok but "image list" does not work.
It waits, although when interrupted (Ctrl + C kind) you may than upload image, When I run the command to dump debug:
I got this
|
Update and rename submodule. Regenerate code and copy updated files. Update regeneration script. Signed-off-by: Øyvind Rønningstad <[email protected]>
@de-nordic Thanks! I think I found the error. I tested image list, and it works for me now. |
Nearly there, the
|
Non-generated. Using cbor_encode directly This removes the dependence on TinyCBOR. Fixes mcu-tools#978 Signed-off-by: Øyvind Rønningstad <[email protected]>
@de-nordic Thanks again, fixed :). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on nrf52840dk: all features of serial recovery work correctly.
Looks OK, couldn't find anything to stick to. Thanks!
@de-nordic @nvlsianpu I'm not allowed to add reviewers, so please add relevant people. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, works on Mynewt as well.
Great, this is ready from my side now. |
@nvlsianpu is this ready for merging now? |
Hopefully it is :-) |
Btw, mcuboot flas size got tiny reduction:
vs the PR base:
|
Hi, sorry for digging this out but I recently wanted to update Mynewt dependency from 1.7.2 to 1.9 and that commit broke 'newt test all'. ie mcuboot/boot/boot_serial/test/ doesn't build Compiling bin/targets/unittest/boot_boot_serial_test/generated/src/boot_boot_serial_test-sysinit-app.c So two questions:
|
looks like it was easy to fix in mcuboot :) #1400 |
Also update cddl-gen to newer version.
This removes the dependency on tinycbor.