This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Matter Light Bulb Sample External GPIO not working as expected

Hi,

I am able to successfully build and flash the Matter Light Bulb sample onto my nRF52840 DK.

I am now getting ready to configure the firmware for use on a custom board. Before I do so I am trying to get the sample flashed onto the same DK with the use of external LEDs/Buttons.

In the file 'nrf52840dk_nrf52840.dts' I am simply changing the GPIO pinout mappings to match the headers on the DK I wish to connect my external LEDs/Buttons to.

As an example, if you build and flash the sample as is, before you pair the accessory to a border router, LED 1 on the DK (Green LED 0) will continuously toggle on and off.

If I simply change the GPIO pin from P0.13 to P0.17, I then connect an LED using a breadboard up to P0.17 on the DK. Once I rebuild and re-flash I would expect the LED to toggle on and off just as it did on the DK with LED1 set to P0.13, but it does not.

I am having the exact same issue when reconfiguring the buttons.

I feel I am missing something extremely obvious but can't seem to work it out.

Below is a screenshot for the code in question just for reference.

P.S I know this is not the best method for uploading firmware to a new custom board. I am simply using the current DK dts file for simplicity of debugging, as I am having seperate issues that I need to resolve when flashing onto my custom board.

Cheers,

Gideon

Parents
  • Hi Gideon,

    I do not have nRF52840DK on hand now, but I would be able to do some tests tomorrow, before this let me give you some advice:

    1) This issue seems not related to Matter specifically, so you can choose a simple sample like NCS\v1.9.1\zephyr\samples\basic\blinky to do a test.

    2) Use a multimeter to measure P0.17 directly.

    3) Check if the building file is actually using the configuration you expected from the following position:

    Best regards,

    Charlie

  • Hi Charlie,

    Sorry looks like this was a stupid mistake on my behalf.

    All the GPIO headers that I was choosing happen to be not connected. I shouldn't have assumed this!

    Cheers,

    Gideon

Reply Children
No Data
Related