Having trouble connecting nRF52832 to VS code and BLE

I had trouble connecting the device to the computer. My computer shows that it is connected, however, in VS code, it cannot find the device. Also, when I tried to use the BLE, it also gave me an error: "Error occured when opening port. Errorcode: NRF_ERROR_TIMEOUT". I want to know how to fix those. 

Parents
  • Hey,

    In Visual Studio Code, open the 'Command Palette' (ctrl+shift+P) and type in "nRF Connect:Generate Support Information". When you start this command, you will be able to see a JSON document in the OUTPUT panel. In that document there will be a list of tools that the extension checks for, one of them being nrfjprog. It is listed with the full path along with the version it reports about itself. In my case, it is shown as below

    "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.11.0"
    If the device is not getting detected even after clicking on the refresh button, then it might be because VS code is unable to find nrfjprog at the expected location. So kindly verify.

    Regards,

    Swathy

Reply
  • Hey,

    In Visual Studio Code, open the 'Command Palette' (ctrl+shift+P) and type in "nRF Connect:Generate Support Information". When you start this command, you will be able to see a JSON document in the OUTPUT panel. In that document there will be a list of tools that the extension checks for, one of them being nrfjprog. It is listed with the full path along with the version it reports about itself. In my case, it is shown as below

    "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.11.0"
    If the device is not getting detected even after clicking on the refresh button, then it might be because VS code is unable to find nrfjprog at the expected location. So kindly verify.

    Regards,

    Swathy

Children
Related