Custom PCB flashing issue via Visual Studio Code

Dear Support Team!


Currently I'm using a custom PCB and experience an issue during flashing.

For our design the reset pin must be disabled which I did in proj.conf like this:

CONFIG_GPIO_AS_PINRESET=n

When flashing the firmware from the Programmer V3.0.7 it works fine, no problem

But when I flash the FW from the IDE (Visual Studio Code) I experience an issue and the FW doesn't work anymore. An my feeling is that it relates to the reset pin configuration.

Could it be that the IDE is flashing differently, forcing pin reset? Is there any configuration where I could change what the IDE is doing when flashing to make it the same procedure as with the Programmer?

Thank you in advance,

Viktor

Parents
  • Hi,

    One way would be to modify board file by adding the runner. For example, for nrf52840-dk board, in zephyr\boards\arm\nrf52840dk_nrf52840\board.cmake file, you would need to add the following line

    board_runner_args(nrfjprog "--softreset")

    Another option which might be preferred (as no changes to the board file need to be done) is to flash from VS Code terminal using

    west flash --softreset

    Best regards,
    Dejan

Reply
  • Hi,

    One way would be to modify board file by adding the runner. For example, for nrf52840-dk board, in zephyr\boards\arm\nrf52840dk_nrf52840\board.cmake file, you would need to add the following line

    board_runner_args(nrfjprog "--softreset")

    Another option which might be preferred (as no changes to the board file need to be done) is to flash from VS Code terminal using

    west flash --softreset

    Best regards,
    Dejan

Children
Related