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

GPIO pin settings when moving from Bootloader to Application mode

Hi,

 

I am using nRF52840 S140 with ble_app_blinky application. I have a basic query of GPIO configuration when moving from Bootloader to Application.

 

We are using Secure Serial Bootloader. Via DFU we will load our BLE blinky application package. In Secure Serial bootloader code, P0.25 is configured as input and Pull-UP. So pin will be always high. Where as in blinky application we are not configuring any GPIO pins other than button and led.

 

After every reset of nRF chip, control will go to Bootloader mode. If P0.25 is low then only bootloader will enter into DFU mode. If pin is high control will immediately go to ble_blink application.

 

My queries are:

1) Whatever pin configurations done in bootloader, whether the same settings will retain even when control goes to ble_blink.

2) If yes, if P0.25 is configured as PullUP in bootloader, to my understanding I can configure P0.25 to PullDown in ble_blink application.

 

Thanks & Regards

Vishnu Beema

Parents
  • Hi,

     

    Yes NRF_BL_DFU_ENTER_METHOD_BUTTON is enabled. I am trying to understand your statement "I would imagine that they would be reset again, but perhaps they are manually reset ".

     

    Irrespective of P0.25, assume I configure few pins in bootloader as PULLUP. Now if I reset chip, control will go to bootloader configure gpio pins as PULLUP and since P0.25 is not Low control will be given to Application mode. In Application mode if I don't configure gpio pins will these pins retain PULLUP state as the same configured in bootloader or will reset to default state NOPULL.

     

    Can you please crosscheck with your R&D team. Unfortunately I am not in office. Otherwise I would have tested using CRO by configuring few pins.

     

    Thanks & Regards

    Vishnu Beema

Reply
  • Hi,

     

    Yes NRF_BL_DFU_ENTER_METHOD_BUTTON is enabled. I am trying to understand your statement "I would imagine that they would be reset again, but perhaps they are manually reset ".

     

    Irrespective of P0.25, assume I configure few pins in bootloader as PULLUP. Now if I reset chip, control will go to bootloader configure gpio pins as PULLUP and since P0.25 is not Low control will be given to Application mode. In Application mode if I don't configure gpio pins will these pins retain PULLUP state as the same configured in bootloader or will reset to default state NOPULL.

     

    Can you please crosscheck with your R&D team. Unfortunately I am not in office. Otherwise I would have tested using CRO by configuring few pins.

     

    Thanks & Regards

    Vishnu Beema

Children
No Data
Related