This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Enabling pin reset. Is still active even with CONFIG_GPIO_AS_PINRESET=n

There is another case, where someone else pointed out the same issue but I can not find it. Anyway there was no solution.

When using VSCode with NRF Connect SDK installed the Reset Pin can not be used as GPIO if flash or erase&flash is used. Only debugging works.

While Flashing with the GUI the west command is used and Pin Reset is still enabled. How can this be disabled.

Flashing xxx to undefined
west flash -d /xxx --skip-rebuild -r nrfjprog --snr 683308700

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: /xxx/zephyr/zephyr.hex
Parsing image file.
WARNING: A programming operation has been performed without --verify.
WARNING: Programming can fail without error.
Enabling pin reset.
Applying pin reset.

Parents
  • Hello,

    Please add "board_runner_args(nrfjprog "--softreset")" to your board.cmake file. This will change the default reset type to a debug reset.

    Here I have modified the reset type for the nrf52dk_nrf52832 board:

    Best regards,

    Vidar

    Edit: The VS code team has been made aware of the issue. It seems like it may be better to not have pinreset selected as the default reset type.

Reply
  • Hello,

    Please add "board_runner_args(nrfjprog "--softreset")" to your board.cmake file. This will change the default reset type to a debug reset.

    Here I have modified the reset type for the nrf52dk_nrf52832 board:

    Best regards,

    Vidar

    Edit: The VS code team has been made aware of the issue. It seems like it may be better to not have pinreset selected as the default reset type.

Children
No Data
Related