Hi
For nRF7002-DK, SDK Version 2.52,I gernate gpio port and set it as active low as below. after gpio pin set as active low, on debugging mode occurred exception fatal error, I can't add any break point for debug after that.it's only simple output gpio pin setting why cause fatal error as below?
yaml for binding
include: base.yaml
compatible: "nordic,custom-device"
description: Custom devicetree device
properties:
in-gpios:
type: phandle-array
description: input gpio pins
required: true
out-gpios:
type: phandle-array
description: output gpio pins
required: true
overlay
/{
custom_device: custom_device {
compatible = "nordic,custom-device";
status = "okay";
in-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
out-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
};
};
static const struct gpio_dt_spec output_gpio = GPIO_DT_SPEC_GET(CUSTOM_DEVICE, out_gpios);
if (!device_is_ready(output_gpio.port))
{
printk("Output GPIOs not ready\n");
return;
}
gpio_pin_set(&output_gpio,output_gpio.pin,GPIO_ACTIVE_LOW);