Skip to content

Conversation

nordicjm
Copy link
Contributor

Allows including the BM UART transport in other applications and updates the UART MCUmgr sample to use this transport library

@nordicjm nordicjm requested review from a team as code owners September 24, 2025 11:21
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Sep 24, 2025
Copy link

You can find the documentation preview for this PR here.

@@ -0,0 +1,66 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

We need documentation for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will need to be taken care of by @michalek-no or @nvlsianpu or others in a later PR

Allows including the BM UART transport in other applications and
updates the UART MCUmgr sample to use this transport library

Signed-off-by: Jamie McCrae <[email protected]>
Copy link
Contributor

@anhmolt anhmolt left a comment

Choose a reason for hiding this comment

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

Comment on lines +24 to +26
static enum mgmt_cb_return os_mgmt_reboot_hook(uint32_t event, enum mgmt_cb_return prev_status,
int32_t *rc, uint16_t *group, bool *abort_more,
void *data, size_t data_size);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could get rid of this function declaration if moving the os_mgmt_reboot_callback definition under the function definition. Up to you what you think is the cleanest.

Comment on lines 54 to +58
^nrf-bm/subsys/mgmt/mcumgr/transport/src/smp.c
^nrf-bm/subsys/mgmt/mcumgr/util/CMakeLists.txt
^nrf-bm/sysbuild/Kconfig.bm
^nrf-bm/samples/mcumgr/uart_mcumgr/src/smp_uart.c
^nrf-bm/samples/mcumgr/uart_mcumgr/src/uart_mcumgr.c
^nrf-bm/subsys/mgmt/mcumgr/transport/src/bm_uart_mcumgr.c
^nrf-bm/subsys/mgmt/mcumgr/transport/src/smp_uart.c
Copy link
Contributor

Choose a reason for hiding this comment

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

Could sort these after the path change.

Suggested change
^nrf-bm/subsys/mgmt/mcumgr/transport/src/smp.c
^nrf-bm/subsys/mgmt/mcumgr/util/CMakeLists.txt
^nrf-bm/sysbuild/Kconfig.bm
^nrf-bm/samples/mcumgr/uart_mcumgr/src/smp_uart.c
^nrf-bm/samples/mcumgr/uart_mcumgr/src/uart_mcumgr.c
^nrf-bm/subsys/mgmt/mcumgr/transport/src/bm_uart_mcumgr.c
^nrf-bm/subsys/mgmt/mcumgr/transport/src/smp_uart.c
^nrf-bm/subsys/mgmt/mcumgr/transport/src/bm_uart_mcumgr.c
^nrf-bm/subsys/mgmt/mcumgr/transport/src/smp.c
^nrf-bm/subsys/mgmt/mcumgr/transport/src/smp_uart.c
^nrf-bm/subsys/mgmt/mcumgr/util/CMakeLists.txt
^nrf-bm/sysbuild/Kconfig.bm

CONFIG_SOC_FLASH_NRF_RRAM=y
CONFIG_SOC_FLASH_NRF_RRAM_BM=n
CONFIG_BM_UARTE_CONSOLE=n
CONFIG_PRINTK=n
Copy link
Contributor

Choose a reason for hiding this comment

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

I see the Bare Metal boot banner config (default y) selects PRINTK, triggering a build warning when trying to set PRINTK=n. Can disable the Bare Metal boot banner here in addition to PRINTK.

Suggested change
CONFIG_PRINTK=n
CONFIG_NCS_BARE_METAL_BOOT_BANNER=n

Copy link
Contributor

@eivindj-nordic eivindj-nordic left a comment

Choose a reason for hiding this comment

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

Please add a changelog entry.

@eivindj-nordic eivindj-nordic merged commit e268ed1 into nrfconnect:main Oct 7, 2025
10 checks passed
@nordicjm nordicjm deleted the uartmcumgr branch October 13, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants