SMP_Server_Sample and custom board is not working

Im working with ncs v2.2.0 and a custom board with a BMD345-A-R module (nrf52840 inside). My purpose is implement the quoted sample but its not working. I will list the steps I have taken:

1º) I have run the blinky example on my nrf52840DK board and it works. I modified the nrf52840dk_nrf52840.overlay (just changed the pinout of the led0) and added "CONFIG_BOARD_ENABLE_DCDC=n" to prj.conf to run this sample on my custom board and it works (I did this to check my board is ok)

2º) My custom board has USB connection, not an UART connected to this USB, i show my layout:

So I tried the sample usb/console and just adding "CONFIG_BOARD_ENABLE_DCDC=n" to prj.conf my custom board works fine. (So my connection USB works)

3º) Now I try SMP_Server_Sample with my nrf52840DK board (just to check that I know how it works). I build and flash:

west build -b nrf52840dk_nrf52840 zephyr/samples/subsys/mgmt/mcumgr/smp_svr -- -DOVERLAY_CONFIG='overlay-shell.conf'
west flash --hex-file build/zephyr/merged.hex

And it works. Now I build a blinky sample following these steps and I can build, upload and update correctly the firmware.

So now I try it with my custom board. I build the SMP_Server_Sample with the next code:

west build -p -b nrf52840dk_nrf52840 zephyr/samples/subsys/mgmt/mcumgr/smp_svr -- -DOVERLAY_CONFIG=custom_config_raro.conf -DDTC_OVERLAY_FILE=usb.overlay

The file "custom_config_raro.conf" includes the content of "overlay-cdc.conf" and "CONFIG_BOARD_ENABLE_DCDC=n":

# ublox bmd345 config
CONFIG_BOARD_ENABLE_DCDC=n
# Enable USB subsystem
CONFIG_USB_DEVICE_STACK=y
CONFIG_SERIAL=y
CONFIG_UART_LINE_CTRL=y
# USB backend is serial device
CONFIG_MCUMGR_SMP_UART=y

I build and flash it but it doesnt work...

Parents
  • I tried the SMP_Server_Sample with the next building command:

    west build  -p  -b nrf52840dk_nrf52840    zephyr/samples/subsys/mgmt/mcumgr/smp_svr    --    -DOVERLAY_CONFIG=overlay-cdc.conf    -DDTC_OVERLAY_FILE=usb.overlay

    And flashed into my nrf52840 DK board. I noticed that the USB that this build enable for comunnicating with mcumgr is not J2 but J3 connector... So obviously I have to discard the USB option, isn't it?

    Finally, my last chance is working like usb/console does.But I can't understand how to relate this sample with the SMP_Server sample.

Reply
  • I tried the SMP_Server_Sample with the next building command:

    west build  -p  -b nrf52840dk_nrf52840    zephyr/samples/subsys/mgmt/mcumgr/smp_svr    --    -DOVERLAY_CONFIG=overlay-cdc.conf    -DDTC_OVERLAY_FILE=usb.overlay

    And flashed into my nrf52840 DK board. I noticed that the USB that this build enable for comunnicating with mcumgr is not J2 but J3 connector... So obviously I have to discard the USB option, isn't it?

    Finally, my last chance is working like usb/console does.But I can't understand how to relate this sample with the SMP_Server sample.

Children
Related