Select runner for Flash Command in nRF Connect

Hi!

In nRF Connect Extension for VSCode, how can I set a (non-default) runner for the Flash Action in the Actions View?

Specifically, I've got my Adafruit Feather nrf52840 connected via USB and SEGGER JLink and would like to use jlink as a flasher. Clicking on "Flash" in the Action View will however hard code "nrfprog" as flasher to the command line (althout I configured the correct flasher via CMakeLists.txt, i.e. "board_set_flasher(jlink)".

Parents
  • Hi,

    You could choose desired runner using west in several ways shown in the documentation.
    For example "west flash --runner jlink" would change the runner to jlink.
    Another option would be to override default flash runner at build time using BOARD_FLASH_RUNNER like this 
    "west build [...] -- -DBOARD_FLASH_RUNNER = jlink"

    Best regards,
    Dejan

  • Thanks for your response. I didn't ask about the command line, though, I asked about the nRF Connect VSCode Extension - and more specifically about the Flash Action there in the Actions View. Building from the command line works as expected. I had tested that before.

    Setting BOARD_FLASH_RUNNER = jlink in the nrf Connect Extension's build configuration doesn't help either, by the way.

    If you could point me to some documentation re how to configure the flash action that would be highly appreciated.

Reply
  • Thanks for your response. I didn't ask about the command line, though, I asked about the nRF Connect VSCode Extension - and more specifically about the Flash Action there in the Actions View. Building from the command line works as expected. I had tested that before.

    Setting BOARD_FLASH_RUNNER = jlink in the nrf Connect Extension's build configuration doesn't help either, by the way.

    If you could point me to some documentation re how to configure the flash action that would be highly appreciated.

Children
Related