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

Why always enter into DFU mode after I connect the power supply?

Hi

I'm working on the DFU feature according to the "device_firmware_updates" example on PCA1001 board, basically it works, but the question I'm facing is the board always enter into DFU mode after I connect the power supply(USB cable) with the board, and the board will NOT enter into DFU mode if you press the reset button, so I have to press the reset button one time in order to make the board work normally. It seems that the power on(connect the USB cable) is different from the reset action, is it correct? any comments?

Thanks

  • Hi Tao,

    Have you modified the buttons_init() to match with the configuration PCA10001 ? The device firmware update was made for the DevKit that has external pull up resistor on the pin. I suspect that when you connect the board via USB, there might be a pulse on the pin that forced the DFU bootloader to start. I would suggest to change the BUTTON_PULL from NRF_GPIO_PIN_NOPULL to BUTTON_PULL GPIO_PIN_CNF_PULL_Pullup.

Related