Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Not able to run BLE when i configure any pin as input pin with PULLUP/PULLDOWN.

Hi Everyone

I have the following issue in my application code.

If i configure a pin as an input pin , i am not able to run the ble init function in which it advertises.

If i comment out the input pin configuration, i am able to run the ble part of program and it sends data successfully to the nrfconnect App.

Here is the code that i am using,.

Am i using the correct method to configure the pin as an input pin.(nrf_gpio_cfg_input(1,NRF_GPIO_PIN_PULLDOWN)) ?

If not ,then what is the proper way to perform this action.

Thanks

Rajat!

int main(void)
{

nrf_gpio_cfg_input(1, NRF_GPIO_PIN_PULLDOWN);
ble_init();
while(1)
{
ble_send("hello");   /*This works perfectly if i comment the nrf_gpio_cfg_input line*/
}
}

Parents Reply Children
No Data
Related