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

Disable pin reset for west flash

I have an application that is utilizing P0.21 as gpio.  However, if I use the command "west flash", I P0.21 get configured as a pin reset.

Is it possible to disable this so west doesn't doesn't configure the system for a reset pin?

Parents
  • Hi,

    You can disable pin reset by sitting CONFIG_GPIO_AS_PINRESET=n in your prj.conf.

  • Right, I have that setting, but when I use west flash, the pin gets re-configured as reset.  See the "Enabling pin reset" line below.

    $ west flash
    -- west flash: rebuilding
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    Using board 17xxxxxx
    -- runners.nrfjprog: Flashing file: C:\git\app\build\zephyr\zephyr.hex
    Parsing image file.
    Erasing page at address 0x0.
    Erasing page at address 0x1000.
    Erasing page at address 0x2000.
    Erasing page at address 0x3000.
    Erasing page at address 0x4000.
    Erasing page at address 0x5000.
    Erasing page at address 0x6000.
    Erasing page at address 0x7000.
    Erasing page at address 0x8000.
    Erasing page at address 0x9000.
    Erasing page at address 0xA000.
    Erasing page at address 0xB000.
    Erasing page at address 0xC000.
    Erasing page at address 0xD000.
    Erasing page at address 0xE000.
    Erasing page at address 0xF000.
    Erasing page at address 0x10000.
    Erasing page at address 0x11000.
    Erasing page at address 0x12000.
    Erasing page at address 0x13000.
    Erasing page at address 0x14000.
    Erasing page at address 0x15000.
    Erasing page at address 0x16000.
    Erasing page at address 0x17000.
    Erasing page at address 0x18000.
    Erasing page at address 0x19000.
    Erasing page at address 0x1A000.
    Erasing page at address 0x1B000.
    Erasing page at address 0x1C000.
    Erasing page at address 0x1D000.
    Erasing page at address 0x1E000.
    Erasing page at address 0x1F000.
    Erasing page at address 0x20000.
    Applying system reset.
    Checking that the area to write is not protected.
    Programming device.
    Enabling pin reset.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 17xxxxxx flashed successfully.

Reply
  • Right, I have that setting, but when I use west flash, the pin gets re-configured as reset.  See the "Enabling pin reset" line below.

    $ west flash
    -- west flash: rebuilding
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    Using board 17xxxxxx
    -- runners.nrfjprog: Flashing file: C:\git\app\build\zephyr\zephyr.hex
    Parsing image file.
    Erasing page at address 0x0.
    Erasing page at address 0x1000.
    Erasing page at address 0x2000.
    Erasing page at address 0x3000.
    Erasing page at address 0x4000.
    Erasing page at address 0x5000.
    Erasing page at address 0x6000.
    Erasing page at address 0x7000.
    Erasing page at address 0x8000.
    Erasing page at address 0x9000.
    Erasing page at address 0xA000.
    Erasing page at address 0xB000.
    Erasing page at address 0xC000.
    Erasing page at address 0xD000.
    Erasing page at address 0xE000.
    Erasing page at address 0xF000.
    Erasing page at address 0x10000.
    Erasing page at address 0x11000.
    Erasing page at address 0x12000.
    Erasing page at address 0x13000.
    Erasing page at address 0x14000.
    Erasing page at address 0x15000.
    Erasing page at address 0x16000.
    Erasing page at address 0x17000.
    Erasing page at address 0x18000.
    Erasing page at address 0x19000.
    Erasing page at address 0x1A000.
    Erasing page at address 0x1B000.
    Erasing page at address 0x1C000.
    Erasing page at address 0x1D000.
    Erasing page at address 0x1E000.
    Erasing page at address 0x1F000.
    Erasing page at address 0x20000.
    Applying system reset.
    Checking that the area to write is not protected.
    Programming device.
    Enabling pin reset.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 17xxxxxx flashed successfully.

Children
No Data
Related