SMP DFU function by uart in NRF52820

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.

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y

# Enable the serial MCUmgr transport.
CONFIG_BASE64=y
CONFIG_MCUMGR_TRANSPORT_UART=y
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
And do below addings
I release and download the .hex to device, but device didn't print "Starting mcuboot\n" in the UART. I'm sure the UART config and hardware part is no problem because when I run direction_finding_connectionless_tx example, it print well. But smp_svr didn't. Now I cannot figure out if the device running well or not because no debug information. Any suggestions for the uart print? Any wrong setting in my above things.
BR,
Treacy
Parents
  • Hi,

    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.

    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y

    Have you tried to add these 3 lines also to your child_image\hci_rpmsg.conf file?

    Best regards,
    Dejan

  • Hi Dejan,

    I tried add these 3 lines to child_image\hci_rpmsg.conf file, but when I build the project, Visual tool said "no work to do". I think this 3 lines didn't been compiled. And I don't know how to find hci_rpmsg.conf file directly in Visual tool. 

    By the way, I only add  these 3 line in prj.conf when in direction_finding_connectionless_tx example, it runs well. Just let you know this information.

    BR,

    Treacy

  • Hi Treacy,

    Treacy said:
    I don't know how to find hci_rpmsg.conf file directly in Visual tool. 

    First you make a project using nRF Connect for VS Code extension and then you can examine existing project files in VS Code Explorer view. It is shown below how you can find the hci_rpmsg.conf file in VS Code Explorer view.


    Best regards,
    Dejan

Reply Children
Related