This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SMP messages in already configured UART example

Hello,

I'm using nRF52840 and nRF Connect. I've customized hello_world sample from Zephyr to also work with mcumgr and receive and respond to SMP commands such as "echo hello" or "image upload" via serial connection. I would like to achieve same behavior with peripheral_uart sample, where uart is already configured and responding to callbacks. I read, that the MCUMGR can be set with a passthrough capabilities, so UART console and SMP should be working fine. Is it possible to do this in this particular example?

Setting CONFIG_MCUMGR_SMP_UART to "y" crashes the program. From what I gather, it happens in a "uarte_nrfx_callback_set" function, in a check

if (!data->async)
With CONFIG_MCUMGR_SMP_UART, data->async is null. Adding CONFIG_MCUMGR_SMP_UART_ASYNC doesn't help.
Thanks,
Piotr
Related