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
  • Hi,

     

    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)

    When using smp_svr, it will invoke mcuboot. The CONFIG_BOARD_ENABLE_DCDC=n must also be set for the child image. This is done by creating the file "my_project\child_image\mcuboot.conf" and adding the CONFIG_BOARD_ENABLE_DCDC=n to this conf file.

     

    Afterwards, you will have to re-generate your build (ie. delete the build folder and configure it again)

     

    Could you try this?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    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)

    When using smp_svr, it will invoke mcuboot. The CONFIG_BOARD_ENABLE_DCDC=n must also be set for the child image. This is done by creating the file "my_project\child_image\mcuboot.conf" and adding the CONFIG_BOARD_ENABLE_DCDC=n to this conf file.

     

    Afterwards, you will have to re-generate your build (ie. delete the build folder and configure it again)

     

    Could you try this?

     

    Kind regards,

    Håkon

Children
No Data
Related