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,
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,
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.