-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dfu: dfu_target: New DFU target SMP #11992
Conversation
Test specificationCI/Jenkins/NRF
CI/Jenkins/integration
Detailed information of selected test modules Note: This message is automatically posted and updated by the CI |
4797ce9
to
c0f8226
Compare
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publishing GitHub Action. |
c0f8226
to
55f26c5
Compare
@rlubos Please review. Looks like that AVSystem have some issue that LwM2M authentication & flash Test fail randomly. Looks like that Boostrastrap is allways passed but real DTLS connection timeout when it fail. |
Is this comment related to this particular PR? I don't see how Bootstrap/DTLS is releated to changes in dfu_target? |
CI test was failing and I was looking for that.. DFU target uppdate is not affect that. |
} | ||
|
||
if (dfu_target_reset_cb) { | ||
upload_state.image_num = 2; |
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.
This is also a bit flimsy, works OK for nrf52840dk in normal state but if someone decides to change MCUboot on that core to be e.g. direct XIP, they would want the opposite slot. Probably OK for initial commit but should have a jira created
dca4dba
to
6ea8b4e
Compare
@nordicjm thanks for comment's I have been fix those now. Reset do now erase and reset_command it do device reset which apply image update and exit from recovery mode. |
6ea8b4e
to
eab8dd8
Compare
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.
Some minor nits.
eab8dd8
to
1489779
Compare
@nordicjm Thanks for comment's. I was removing erase from schedule update fail and fix your spotted issues. |
1489779
to
2d6356a
Compare
2d6356a
to
d4351c6
Compare
Updated Change-log information about new DFU target |
@annakielar @carlescufi @rlubos Please review. |
|no_changes_yet_note| | ||
* Added: | ||
|
||
* New DFU SMP target for update image to external MCU by using MCUMGR SMP client. |
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.
* New DFU SMP target for update image to external MCU by using MCUMGR SMP client. | |
* A new DFU SMP target for update image to external MCU by using the MCUmgr SMP Client. |
include/dfu/dfu_target_smp.h
Outdated
* | ||
* @defgroup dfu_target_SMP SMP external MCU target | ||
* @{ | ||
* @brief DFU Target for upgrades performed by SMP Client |
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.
* @brief DFU Target for upgrades performed by SMP Client | |
* @brief DFU Target for upgrades performed by SMP Client. |
include/dfu/dfu_target_smp.h
Outdated
* Function that boots the target in MCUboot serial recovery mode, needed before sending | ||
* SMP commands. | ||
* | ||
* @param[in] cb User defined target reset function for entering recovery mode |
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.
* @param[in] cb User defined target reset function for entering recovery mode | |
* @param[in] cb User-defined target reset function for entering recovery mode. |
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.
Please add missing full stops at the end of all full sentences in this file.
include/dfu/dfu_target_smp.h
Outdated
/** | ||
* @brief Initialize dfu target SMP client | ||
* | ||
* @retval 0 If successful, negative errno otherwise. |
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.
* @retval 0 If successful, negative errno otherwise. | |
* @retval 0 on success, negative errno otherwise. |
include/dfu/dfu_target_smp.h
Outdated
int dfu_target_smp_image_list_get(struct mcumgr_image_state *res_buf); | ||
|
||
/** | ||
* @brief Reboot SMP target device and apply new image. |
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.
* @brief Reboot SMP target device and apply new image. | |
* @brief Reboot SMP target device, and apply new image. |
include/dfu/dfu_target_smp.h
Outdated
int dfu_target_smp_client_init(void); | ||
|
||
/** | ||
* @brief Read Image list |
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.
* @brief Read Image list | |
* @brief Read image list. |
include/dfu/dfu_target_smp.h
Outdated
/** | ||
* @brief Read Image list | ||
* | ||
* @param res_buf Image List buffer |
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.
* @param res_buf Image List buffer | |
* @param res_buf Image list buffer. |
include/dfu/dfu_target_smp.h
Outdated
int dfu_target_smp_confirm_image(void); | ||
|
||
/** | ||
* @brief See if data in buf indicates MCUBoot style upgrade. |
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.
* @brief See if data in buf indicates MCUBoot style upgrade. | |
* @brief Check if data in buffer indicates MCUboot style upgrade. |
Do you mean buffer or, e.g., buf parameter?
d4351c6
to
436bb95
Compare
@annakielar Thanks for review. I have fixed your proposed changes. |
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
436bb95
to
a41a07c
Compare
Added new DFU SMP target for update image to external MCU by using MCUMGR SMP client. Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no>
a41a07c
to
9611516
Compare
Added new DFU target for update image to external MCU by using MCUMGR SMP client.