nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

How to enter 52832 bootloader mode only by PIN signal control?

I have nRF52832 with factory reseted FW.

I need to make 52832 enter bootloader mode without pressing button. By just RPI4 PIN control program.

Planning PIN connection between Raspberry Pi 4 and 52832 DK.

  RPI4 GPIO5 --- 52832 RESET

  RPI4 GPIO6 --- Relay(5V VCC) --- 52832 5V

  RPI4 UART0 RX --- 52832 UART TXD

  RPI4 UART0 TX --- 53832 UART RXD

  RPI4 GND --- 52832 GND

Manual steps entering bootloader is pressing RESET button and power-on.

For doing some step programmatically, out 0 to RESET, then Relay OFF-ON.

Do I have to put Relay for this purpose?

Is there a way to enter bootloader mode porgramatticaly without Relay?

  • Hello,

    I am not completely sure when you say "I need to make 52832 enter bootloader mode". Did you program a bootloader already? Because the nRF52832 doesn't come preprogrammed with a bootloader. Are you using an nRF52832 DK from Nordic, a 3rd party device, or custom HW?

    Manual steps entering bootloader is pressing RESET button and power-on.

    This is the interface chip on the DK. Putting this in bootloader mode will allow you to update the on-board programmer, not the nRF52832. 

    There are ways of updating the application running on the nRF52832 without pressing any buttons (you don't really need to power cycle it either) just by using GPIOs, but based on the way that you asked these questions, I suspect that you have misunderstood something.

    If you want to program the nRF52832 from the via a bootloader, you first need to compile the bootloader from the SDK that you are using. Are you using the nRF5 SDK or the nRF Connect SDK?

    Best regards,

    Edvin

  • Hi Edwin,

    I have nRF5 SDK, nRF Connect SDK, nrfutil, NRF52DK with 52832. I setup development environment and all connection is working.

    The issue is manufacturing. Our SoC is connected with 52832 with UART and other GPIO PINS. We need to flash bootloader, Softdevice and application image to 52832 on manufacturing.

    If you know GPIO sequence which make 52832 bootloader mode, please describe the sequence. 52832 is factory reseted condition. We cannot power cycle of 52832 during the sequence.

    We also have a plan to add 10pin debug port if needed.

    Best Regard,

    tni

  • Please see this thread:

    https://devzone.nordicsemi.com/f/nordic-q-a/36871/pin-interface-and-factory-programming-nrf52840-over-uart-connected-with-processor

    tni said:
    We also have a plan to add 10pin debug port if needed

    Since the nRF52 is completely empty when coming from the factory, there is no pin sequence to put it in bootloader mode, because there is no bootloader pre-programmet. The only way to program the bootloader is to program it using a programmer. Depending on the scale/amount of chips you are going to program, you may want to look into a factory programmer, or using a 10pin debug port connected to the SWDIO and SWDCLK pins. 

    If you are interrested, I can give you the contact information to our Regional Sales Manager (RSM) in your area. If so, please send me a direct message (here on DevZone) where you link to this ticket, and specify where you are located. Our RSM may know more about factory programming than I do, as they are typically more involved in the production phase.

    Best regards,

    Edvin

Related