This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DFU Bootloader button inverse polarity

Hello,

I have tested the DFU and everything works fine. Normaly the device enters into DFU mode with a pressed button 7, meaning the level on I/O 7 is LOW.

But in my application I need normal operation with LOW level on button 7 and DFU mode with HIGH level.

So I change the buttons_init function from:

static void buttons_init(void)
{ 
 nrf_gpio_cfg_sense_input(BOOTLOADER_BUTTON_PIN, BUTTON_PULL, 
 NRF_GPIO_PIN_SENSE_LOW);
}

to

static void buttons_init(void)
{ 
 nrf_gpio_cfg_sense_input(BOOTLOADER_BUTTON_PIN, NRF_GPIO_PIN_PULLDOWN, 
 NRF_GPIO_PIN_SENSE_HIGH);
}

But it does not work. The device still enter DFU mode with low level on pin7 and start the main application with high level.

Is there more to change?

Thanks a lot and best Regards

Parents Reply Children
No Data
Related