light bulb sample works on nrf52840DK and doesn't on nrf52840 dongle

Hi, 

I'm trying to build the ZigBee light bulb sample on nRF52840 dongle.

It compiles. 1 LED blinks, and the other 2 are steady, which supposedly indicates that the dongle has joined the network.

My SmartThings ZigBee hub doesn't see a new device if I'm trying to "locate nearby", however, if I build the code for nRF52840 DK it works fine and I can control the LED 'light bulb" from my phone. I feel there's something wrong in ZigBee configuration...

I'm using VScode with SDK 2.5.2 on Windows 11.

\include\zb_dimmable_light.h

pm_static_nrf52840dongle_nrf52840.yml:

# supposedly this prevents settings_subsys_init from crashing on the dongle
# devzone.nordicsemi.com/.../settings_subsys_init-causes-a-bus-fault-on-nrf52840-dongle
EMPTY_0:
address: 0x0e0000
end_address: 0x100000
region: flash_primary
size: 0x20000
# SRAM reserved to be used by the nRF5 Bootloader
EMPTY_1:
address: 0x20000000
end_address: 0x20000400
region: sram_primary
size: 0x0400

nrf52840dongle_nrf52840.conf:

# driver/subsys. Use the deferred mode instead.
CONFIG_LOG_MODE_DEFERRED=y
#USB device
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Zephyr USB console sample"
CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA"
CONFIG_USB_DEVICE_VID=0x1915
CONFIG_USB_DEVICE_PID=0x0100
CONFIG_UART_LINE_CTRL=y
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y

prj.conf:

CONFIG_NCS_SAMPLES_DEFAULTS=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_PWM=y
# Make sure printk is not printing to the UART console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_MAIN_THREAD_PRIORITY=7
CONFIG_ZIGBEE=y
CONFIG_ZIGBEE_APP_UTILS=y
CONFIG_ZIGBEE_ROLE_ROUTER=y
CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y
# Enable DK LED and Buttons library
CONFIG_DK_LIBRARY=y
# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
# Enable nRF ECB driver
CONFIG_CRYPTO=y
CONFIG_CRYPTO_NRF_ECB=y
CONFIG_CRYPTO_INIT_PRIORITY=80
# Networking
CONFIG_NET_IPV6=n
CONFIG_NET_IP_ADDR_CHECK=n
CONFIG_NET_UDP=n
# Scene extension
CONFIG_ZIGBEE_SCENES=y

Thanks in advance.

Parents Reply Children
No Data
Related