0

GPIO pin states during OTA DFU process
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

GPIO pin states during OTA DFU process

by Aashyk on Thu Jul 22, 2021 9:42 pm

Hello,

I have been working with Adafruit feather nRF52832 to develop a wearable prototype. Currently, I am implementing OTA updates through BLE, and developing this feature using the nRF toolbox app on Android. We were able to successfully upload our firmware onto the nRF52 breakout board, but some of the GPIO pins are being set to HIGH state during the DFU process. So, I am trying to figure out which GPIO pins are affected by the DFU process and if so how to configure their states during DFU process. Any help is appreciated, Thanks!

Aashyk
 
Posts: 2
Joined: Thu Jul 22, 2021 9:38 pm

Re: GPIO pin states during OTA DFU process

by adafruit_support_mike on Sun Aug 01, 2021 9:08 pm

The only pin involved in the DFU is the D20, which should be pulled LOW to put the chip to launch a specialized version of the bootloaer after a reset.

adafruit_support_mike
 
Posts: 63679
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPIO pin states during OTA DFU process

by Aashyk on Tue Aug 03, 2021 10:57 pm

I'm pretty sure atleast two other pins such as P0.17 and P.19 changes state during the process; both are default LED pins. I am wondering if there are any other pins whose states are affected similar to these pins

Aashyk
 
Posts: 2
Joined: Thu Jul 22, 2021 9:38 pm

Re: GPIO pin states during OTA DFU process

by adafruit_support_mike on Wed Aug 04, 2021 2:46 pm

Ah, I see the distinction: pins that are affected by the DFU code, not pins that have an effect on it.

Let me check with the folks who wrote the firmware.

adafruit_support_mike
 
Posts: 63679
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPIO pin states during OTA DFU process

by hathach on Thu Aug 05, 2021 12:06 am

pin 17 and 19 are used for LED indicator https://github.com/adafruit/Adafruit_nR ... oard.h#L32 . It is built into the bootloader code. There is also 2 extra button input for determine bootloader mode. You could also try to add your own bootloader with gpio matches your design as well, check out the repo readme for the compiling instruction.

hathach
 
Posts: 1156
Joined: Tue Apr 23, 2013 1:02 am

Please be positive and constructive with your questions and comments.