GPIO P1.02 on nRF54L15 doesn't work.

Hi.

I made a board with nRF54L15.

I would like to use P0.01 on nRF54L15 as GPIO output., but I failed to confirm P0.01 turn high.

Then, I asked nordic AI anything to solve this problem.

AI recommended to add below in prj.conf, because nRF54L15DK use P1.02 as NFC1 by default.

CONFIG_NFCT_PINS_AS_GPIOS=y

Not only this, I also added below to devicetree according to AI

/{
	user_dbg_pin: user-dbg-pin {
		compatible = "nordic,gpio-pins";
		gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
		status = "okay";
	};
}

&gpio1 {
	status = "okay";
};

&gpiote20 {
	status = "okay";
};

&uicr {
    nfct-pins-as-gpios;
};

and, main.c

static const struct gpio_dt_spec pin_dbg = GPIO_DT_SPEC_GET_OR(DT_NODELABEL(user_dbg_pin), gpios, {0});

~~~~~~~~~~~~~~~~~~~~

if (pin_dbg.port) {
	gpio_pin_configure_dt(&pin_dbg, GPIO_OUTPUT_INACTIVE);
}

~~~~~~~~~~~~~~~~~~~~
gpio_pin_set_dt(&pin_dbg, 0);

gpio_pin_set_dt(&pin_dbg, 1);

But, I couldn't find GPIO 1.02 change.

Would you tell me anything to solve ?

Best regards.

Parents Reply
  • Hi.

    Your explanatiom seemes correct too.
    But, I could confirm with minimum configuration project based on a blinky sample project.
    I altered the blinky project to add

    CONFIG_NFCT_PINS_AS_GPIOS=y

    in prj.conf and

    &led0 {
    	gpios = <&gpio1 2 0>;
    };
    
    &uicr {
        nfct-pins-as-gpios;
    };

    in devicetree.overlay

    But, I couldn't confirm  with quoted one.

    'll put prj.conf in my application below.

    I'll put two hex file, the minimum(blinky based)  and current application .

    minimum

    6232.merged.hex

    current app (prj.conf and overlay in first comment)

    2526.app.hex

    Would you tell me anything to help 
    (For example, the output file of port assignment,
    the comparison between minimum and app) ?

    Best regards.

Children
Related