The GPIO function call in user app

[size=small]Hi,[/size]
[size=small]In the DWM1001_DEV user application, I tried to get and set the API function of the GPIO Pin value,[/size]
[size=small] read the value of GPIO27, and set the value of GPIO23 according to the fetched value. [/size]
[size=small]The program is as follows:[/size]
[size=small]-------------------------------------------------- --------------[/size]
[size=small]Int r;[/size]
[size=small]Bool v;[/size]
[size=small]r=dwm_gpio_cfg_input(DWM_GPIO_IDX_27, DWM_GPIO_PIN_PULLUP);[/size]
[size=small]Printf(“dwm_gpio_cfg_input 27 rcd =(%d) value = (%u)\n”,r,DWM_GPIO_PIN_PULLUP);[/size]

[size=small]r=dwm_gpio_value_get(DWM_GPIO_IDX_27, &v);[/size]
[size=small]Printf(“dwm_gpio_value_get 27 rcd =(%d) value = (%u)\n”,r,v);[/size]

[size=small]r=dwm_gpio_cfg_output(DWM_GPIO_IDX_23, 0);[/size]
[size=small]Printf(“dwm_gpio_cfg_output 23 rcd =(%d) value = (%u)\n”,r,0);[/size]

[size=small]If(v > 0){[/size]
[size=small]r=dwm_gpio_value_set(DWM_GPIO_IDX_23, 1);[/size]
[size=small]Printf(“dwm_gpio_value_set 23 rcd =(%d) value = (1)\n”,r);[/size]
[size=small]}else{[/size]
[size=small]r=dwm_gpio_value_set(DWM_GPIO_IDX_23, 0);[/size]
[size=small]Printf(“dwm_gpio_value_set 23 rcd =(%d) value = (0)\n”,r);[/size]
[size=small]}[/size]
[size=small]-------------------------------------------------- --------------[/size]

[size=small]My question is:[/size]
[size=small]I found that the return values of these API calls are all OK, and the value of GPIO27 is 1. [/size]
[size=small]The setting of GPIO23 call also looks like no problem. [/size]
[size=small]However, when I actually test the voltage of the Pins of GPIO27 and GPIO23 with a multimeter,[/size]
[size=small]Discovered that there is no actual voltage output at all. [/size]
[size=small]Does anyone know why?[/size]

[size=small]Best regards[/size]
[size=small]Dong Jiang[/size]

Hi Dong Jiang,

Are you measure the points in J10 of the dev board?
Please note that the GPIO on J10 do not directly connected to GPIO of the module(DWM1001), but J7 is.

You can look the schematic of the Dev board for the details.

For me, the GPIO voltage is OK.

Hi,mhc
Thank you for your help, as you said using the input and output of J7 I confirmed the voltage change.
Best regards。
Dong Jiang