Hello!

I am having issues loading the firmware onto the nrf9160 feather using Zephyr Tools. The project builds fine, I can find the device (in bootloader mode - solid blue LED) and I can set up newtmgr by using Zephyr Tools: Setup Newtmgr. I am using the Zephyr SDK Tools extension in VS Code on Windows 10

When I run the Zephyr Tools: Load via Bootloader command this is the output I get in the terminal:

*  Executing task: zephyr-tools -b 

thread 'main' panicked at 'Device found but failed to open: Operation not supported or unimplemented on this platform', src\main.rs:86:27
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

 *  The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command zephyr-tools -b" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

I should add that I am getting a “Load error! Did you init your project?” error message in VS code at the same time as well

Any hints as to what might be going wrong?

Thanks!

    Hey abdu

    Hmm interesting. Can you try with cmd.exe instead of powershell?

    Also what version of Zephyr SDK Tools do you have installed? The latest is 0.1.29

    @abdu turns out Windows doesn’t like libusb. I’ve fixed the panic condition which halted the bootloader upload. You will need to put your device into bootloader manually as shown on this page.

    You can download and install the latest plugin or wait until it propagates on the extension marketplace.

    https://community.jaredwolff.com/assets/files/2022-11-24/1669258396-902832-zephyr-tools-0130vsix.zip

    Let me know how it goes!

      jaredwolff

      Awesome, zephyr-tools 0.1.30 fixed it thanks! (I am putting the device into bootloader manually)

      I forgot to mention in the OP that I had the latest driver for the CP2102 installed already.

      Probably something minor, but the terminal is still showing the error, and then proceeds with the load:

      `

      • Executing task: zephyr-tools -b

      Device found but failed to open: Operation not supported or unimplemented on this platform
      Could not open device 10c4:ea60

      • Terminal will be reused by tasks, press any key to close it.

      • Executing task: newtmgr -c vscode-zephyr-tools image upload c:\iot\nrf9160_feather\aarcomm\build\zephyr\app_update.bin -r 3 -t 0.25

        269.51 KiB / 269.51 KiB [====================================================================================================================================] 100.00% 15.73 KiB/s 17s
        Done

      • Terminal will be reused by tasks, press any key to close it.

      • Executing task: newtmgr -c vscode-zephyr-tools reset

      Done

      • Terminal will be reused by tasks, press any key to close it.
        `

      Thanks again for your help!

        Terms and Conditions | Privacy Policy