Hello,
I'm trying to configure the GPIO pins on the MDBT42Q-P192KV2 module, but they are not responding as expected.
I'm using the nRF52840 Development Kit to flash the code. Sometimes, nRF Connect is able to detect the chip information, but other times it fails to do so. Even when it successfully detects the chip and flashes the code, I'm unable to measure 3V on the corresponding pin.
Any help or suggestions would be greatly appreciated!
Thank you.
Code :
#include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> /* 1000 msec = 1 sec */ #define SLEEP_TIME_MS 4000 /* The devicetree node identifier for the "led0" alias. */ #define LED1_NODE DT_ALIAS(led1) /* * A build error on this line means your board is unsupported. * See the sample documentation for information on how to fix this. */ static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED1_NODE, gpios); int main(void) { int ret; if (!gpio_is_ready_dt(&led)) { return 0; } ret = gpio_pin_configure_dt(&led, GPIO_OUTPUT_INACTIVE); if (ret < 0) { return 0; } gpio_pin_set_dt(&led,1); return 0; }
overlay and prj config files are attached.
8424.prj.conf1581.nrf52dk_nrf52810.overlay