Skip to content

boards: nordic: nrf54h20dk iron board MCUBoot support #88298

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

nordic-mik7
Copy link
Contributor

@nordic-mik7 nordic-mik7 commented Apr 8, 2025

Provide proper adaptions as bootloader ROM offset, flash load
offset and dts definitions for the nRF54H20 iron board to make it
ready for the MCUBoot bootloader.

Adding smp_svr sample configuration for nRF54H20dk 'iron' board.

Copy link

github-actions bot commented Apr 8, 2025

Hello @nordic-mik7, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

Provide proper adaptions as bootloader ROM offset, flash load
offset and dts definitions for the nRF54H20 iron board to make it
ready for the MCUBoot bootloader.

Signed-off-by: Michal Kozikowski <[email protected]>
@nordic-mik7 nordic-mik7 force-pushed the dev/ironboard_mcuboot_rom_offset branch from 4cf4c1e to 2c20897 Compare April 9, 2025 10:26
@nordic-mik7 nordic-mik7 changed the title boards: nordic: nrf54h20dk iron board ROM offset boards: nordic: nrf54h20dk iron board MCUBoot support Apr 9, 2025
Comment on lines +1 to +9
# Copyright (c) 2025 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

config SMP_SVR_NRF54H20_SAMPLE
bool
default y if SOC_NRF54H20_CPUAPP
select EXPERIMENTAL

source "Kconfig.zephyr"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file to go

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was requested to deliver this sample as experimental.

Comment on lines 5 to 8
# If cpusec_cpuapp_ipc node is present in dtc, it automatically enables canonical ZCBOR encoding.
# Canonical ZCBOR encoding needs legacy RC behaviour to work with mcumgr-client and other PC tools.
# When tools are updated, this can be removed.
CONFIG_MCUMGR_SMP_LEGACY_RC_BEHAVIOUR=y
Copy link
Collaborator

@nordicjm nordicjm Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't follow this, this hasn't been a problem with any other board and has not been set for others in years, even when used with that garbage tool does not refer to the go tool. If there is a problem with a tool, report it to the tool author. Gold standard is AuTerm, if it works with that then other tools are broken.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nrf54h20 IPC communication with secdom enforced canonical ZCBOR encoding so far. Canonical ZCBOR is not working with AuTerm unless we use legacy RC codes. This CONFIG is set here to indicate that if we enable IPC node for nrf54h20 in the future, legacy RC behavior must be set.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have an nrf5340dk here with this sample, CONFIG_ZCBOR_CANONICAL=y and CONFIG_MCUMGR_SMP_LEGACY_RC_BEHAVIOUR=n using AuTerm 0.35a and MCUmgr is working perfectly over the UART so if it doesn't work for you on nrf54h20 then would suggest trying an nrf52/nrf53 dev board and if that works, indicates there is an issue with something else

Copy link
Contributor Author

@nordic-mik7 nordic-mik7 Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed it. You are right, it seems that there were some issues related to IPC itself in previous Ironside SDFW. To be investigated, currently IPC with secdom is turned off.

@nordic-mik7 nordic-mik7 requested a review from nordicjm April 10, 2025 08:17
Adding sample configuration for nRF54H20dk 'iron' board.

Signed-off-by: Michal Kozikowski <[email protected]>
@nordic-mik7 nordic-mik7 force-pushed the dev/ironboard_mcuboot_rom_offset branch from c83e43b to e30da54 Compare April 10, 2025 10:03
Comment on lines +36 to +43
slot0_partition: partition@3c000 {
label = "image-0";
reg = <0x3c000 DT_SIZE_K(400)>;
};

slot1_partition: partition@6E000 {
label = "image-1";
reg = <0x6E000 DT_SIZE_K(400)>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the size of these partitions was supposed to be 200 kB, not 400.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the new PR

@ahasztag
Copy link
Contributor

Please do not review this PR, write your comments in #88576

The author of this PR is out of office, and we do not have write access to his fork.

@carlescufi
Copy link
Member

Closing in favor of #88576

@nordicjm @anangl please review it there.

@carlescufi carlescufi closed this Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants