Unable to get Matter sample running on the Adafruit Feather nRF52840 Express

Hello.

I've recently been trying to get my Matter application to run on an Adafruit Feather nRF52840 Express. I'm having trouble getting the application to fully run as it seems to get part way through the initialization stage and then completely stops. These are the logs I'ms seeing:

I: Init CHIP stack
I: 217 [DL]BLE address: D6:54:7C:C3:98:7E
I: 224 [DL]OpenThread started: OK
I: 224 [DL]Setting OpenThread device type to MINIMAL END DEVICE
I: 224 [SVR]Subscription persistence not supported
I: 224 [SVR]Server initializing...
I: 225 [TS]Last Known Good Time: 2023-08-16T11:10:45
I: 226 [DMG]AccessControl: initializing
I: 226 [DMG]Examples::AccessControlDelegate::Init
I: 226 [DMG]AccessControl: setting
I: 226 [DMG]DefaultAclStorage: initializing
I: 227 [DMG]DefaultAclStorage: 0 entries loaded
D: 227 [IN]UDP::Init bind&listen port=5540
E: 227 [IN]SO_REUSEPORT failed: 109
D: 228 [IN]UDP::Init bound to port=5540
D: 228 [IN]BLEBase::Init - setting/overriding transport
D: 228 [IN]TransportMgr initialized
D: 231 [DL]Using Thread extended MAC for hostname.
I: 233 [ZCL]Using ZAP configuration...
I: 235 [DMG]AccessControlCluster: initializing
D: 235 [DL]Boot reason: 1
I: 236 [ZCL]Initiating Admin Commissioning cluster.
D: 237 [IN]SecureSession[0x20002b50I: 30255 [DL]CHIPoBLE advertising mode changed to slow
I: 30257 [DL]CHIPoBLE advertising started

My same code running on the nRF52840DK outputs this:

uart*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
:~$ I: Init CHIP stack
I: 216 [DL]BLE address: E9:F0:21:1F:69:D9
I: 226 [DL]OpenThread started: OK
I: 229 [DL]Setting OpenThread device type to MINIMAL END DEVICE
I: 235 [SVR]Subscription persistence not supported
I: 240 [SVR]Server initializing...
I: 243 [TS]Last Known Good Time: 2023-08-16T11:06:30
I: 248 [DMG]AccessControl: initializing
I: 252 [DMG]Examples::AccessControlDelegate::Init
I: 256 [DMG]AccessControl: setting
I: 260 [DMG]DefaultAclStorage: initializing
I: 264 [DMG]DefaultAclStorage: 0 entries loaded
D: 268 [IN]UDP::Init bind&listen port=5540
E: 272 [IN]SO_REUSEPORT failed: 109
D: 275 [IN]UDP::Init bound to port=5540
D: 279 [IN]BLEBase::Init - setting/overriding transport
D: 284 [IN]TransportMgr initialized
D: 290 [DL]Using Thread extended MAC for hostname.
I: 296 [ZCL]Using ZAP configuration...
I: 301 [DMG]AccessControlCluster: initializing
D: 306 [DL]Boot reason: 1
I: 308 [ZCL]Initiating Admin Commissioning cluster.
D: 314 [IN]SecureSession[0x20003388]: Allocated Type:1 LSID:8331
D: 320 [DL]CHIPoBLE advertising set to on
I: 324 [DIS]Updating services using commissioning mode 1
E: 329 [DIS]Failed to remove advertised services: 3
D: 334 [DL]Using Thread extended MAC for hostname.
I: 339 [DIS]Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1
E: 347 [DIS]Failed to advertise commissionable node: 3
E: 352 [DIS]Failed to finalize service update: 3
I: 357 [DIS]Updating services using commissioning mode 1
E: 362 [DIS]Failed to remove advertised services: 3
D: 367 [DL]Using Thread extended MAC for hostname.
I: 371 [DIS]Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1
E: 380 [DIS]Failed to advertise commissionable node: 3
E: 385 [DIS]Failed to finalize service update: 3
I: 390 [DIS]Delaying proxy of operational discovery: missing delegate
I: 396 [IN]CASE Server enabling CASE session setups
D: 401 [IN]SecureSession[0x20003440]: Allocated Type:2 LSID:8332
I: 407 [SVR]Joining Multicast groups
I: 410 [SVR]Server Listening...
I: 413 [DL]Device Configuration:
I: 416 [DL]  Serial Number: 11223344556677889900
I: 421 [DL]  Vendor Id: 65521 (0xFFF1)
I: 424 [DL]  Product Id: 32768 (0x8000)
I: 428 [DL]  Product Name: not-specified
I: 432 [DL]  Hardware Version: 0
I: 435 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
I: 441 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
I: 447 [DL]  Manufacturing Date: (not set)
I: 451 [DL]  Device Type: 65535 (0xFFFF)
I: 455 [SVR]SetupQRCode: [MT:Y.K9042C00KA0648G00]
I: 460 [SVR]Copy/paste the below URL in a browser to see the QR Code:
I: 466 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AY.K9042C00KA0648G00
I: 475 [SVR]Manual pairing code: [34970112332]
I: End init CHIP stack
I: [gpio_pin_configure_dt] completed with error code: 0
I: [gpio_pin_interrupt_configure_dt] completed with error code: 0
I: [gpio_init_callback] completed with error code: 0
I: Initialize temp sensor
I: 501 [DL]CHIP task running
I: 505 [DL]CHIPoBLE advertising started

Everything under "End init CHIP stack" is my application specific code making use of an i2c temperature sensor.

I experience similar results when using an unmodified sample. When using the Matter Lock sample I get the expected logs on my nRF52840DK, and I see this when flashing to the Adafruit Feather:

I: Init CHIP stack
I: 220 [DL]BLE address: C6:07:EF:5A:FD:7F
I: 224 [DL]OpenThread SED interval is 1000ms
I: 227 [DL]OpenThread started: OK
I: 227 [DL]Setting OpenThread device type to SLEEPY END DEVICE
I: 227 [SVR]Subscription persistence not supported
I: 228 [SVR]Server initializing...
I: 228 [TS]Last Known Good Time: 2023-08-21T13:25:16
I: 229 [DMG]AccessControl: initializing
I: 229 [DMG]Examples::AccessControlDelegate::Init
I: 230 [DMG]AccessControl: setting
I: 230 [DMG]DefaultAclStorage: initializing
I: 230 [DMG]DefaultAclStorage: 0 entries loaded
D: 230 [IN]UDP::Init bind&listen port=5540
E: 231 [IN]SO_REUSEPORT failed: 109
D: 231 [IN]UDP::Init bound to port=5540
D: 231 [IN]BLEBase::Init - setting/overriding transport
D: 232 [IN]TransportMgr initialized
D: 235 [DL]Using Thread extended MAC for hostname.
I: 237 [ZCL]Using ZAP configuration...
I: 239 [DMG]AccessControlCluster: initializing
D: 239 [DL]Boot reason: 1
I: 239 [ZCL]Initiating Admin Commissioning 

I'm using my DK as the programmer for the Feather, and I have RTT for logging on the feather instead of UART. I also disabled OTA capabilities on the Feather since it doesn't have an onboard flash. If I had to guess, I'd imagine it's a configuration issue, but I'm not sure where to go with my debugging.

Thanks for any suggestions.

Parents Reply Children
No Data
Related