Hello guys,
I want to test SMP DFU function by uart. I use "E:\Spec\bluetooth\Nordic\nRF52820\ncs2.5.0\v2.5.0\zephyr\samples\subsys\mgmt\mcumgr\smp_svr" example and add below Macro in prj.conf.

Hello guys,
I want to test SMP DFU function by uart. I use "E:\Spec\bluetooth\Nordic\nRF52820\ncs2.5.0\v2.5.0\zephyr\samples\subsys\mgmt\mcumgr\smp_svr" example and add below Macro in prj.conf.
Hi,
Please check that the uart node is enabled "status="okay";" in your devicetree (overlay) and that CONFIG_SERIAL=y is defined in the prj.conf file (you can check actual value of Kconfigs in file build/zephyr/.config).
The suggestions in this post might be useful to debug this kind of error.
Best regards,
Jørgen
Hi,
Please check that the uart node is enabled "status="okay";" in your devicetree (overlay) and that CONFIG_SERIAL=y is defined in the prj.conf file (you can check actual value of Kconfigs in file build/zephyr/.config).
The suggestions in this post might be useful to debug this kind of error.
Best regards,
Jørgen
Hi,
Thank you for your response. I've done all the things you metioned, but still cannot build successfully.
1. I checked the uart node, it is already "status="okay". See below screenshot
2. CONFIG_SERIAL=y set too. But "CONFIG_SERIAL=y CONFIG_CONSOLE=y" seems are different from other Macro.
3. when build finish, there is nRF52820/ncs2.5.0/v2.5.0/zephyr/drivers/console/uart_mcumgr.c:254: undefined reference to `__device_dts_ord_82' error. So I do the troubleshooting as "this post", add "status = "okay"; "in &flash0 part, but still cannot build success
4. I list all my changes based on the example. Please do a check
I'm really looking forward to your reply.
BR,
Treacy
Hi,
It looks like you have included "usb.overlay" in your build configuration, was this intentional?
The devictree_generated.h file shows that node 82 is the USB CDC ACM node (serial port over USB), which is maybe not enabled in your application.
Try to remove this overlay file and rebuild the project.
You should not have to make any changes to &flash0.
Best regards,
Jørgen
Hi Jorgen,
I did as you said, it works now. But I want to change the UART_pin to 6,7, so I add usb.overlay and add uart information there. If I removed it now, how can I change UART pin?
1) buid success when remove usb.overlay
2) How can I add UART information if I remove usb.overlay?
BR,
Treacy
You can create an overlay file for the board you are building for, see Set devicetree overlays.