P1.00 with CONFIG_BT in NCS2.0

Hello

NCS2.0.2, nRF5340, VScode

i can't read button P1.00.

#include <zephyr.h>
#include <device.h>
#include <drivers/gpio.h>
#include <hal/nrf_gpio.h>
#include <hal/nrf_gpiote.h>
#include <nrfx_gpiote.h>
#include <sys/reboot.h>



void main(void)
{
	printk("Hello World! %s\n", CONFIG_BOARD);
	nrf_gpio_cfg_input(0x20,GPIO_PIN_CNF_PULL_Disabled);

	while(1)
	{
		int vi1=nrf_gpio_pin_read(0x20);
		printk("*button P1.00=   %d  \n",vi1);
		k_msleep(500);
	}
}

prj.conf

CONFIG_BT=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_BROADCASTER=n
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV_SYNC=y
CONFIG_BT_DEBUG_LOG=y

 

if remove CONFIG_BT,  button P1.00 will read ok;

how to slove it ?

   

Best regards

Related