a1ien / rusb

A safe Rust wrapper for libusb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to flash a chip, but getting "Can't init Global usb context, error Other"

daschawarde opened this issue · comments

I am trying to flash my application to the chip (STM32) via Ubuntu, but it returns me "Can't init Global usb context, error Other":
thread 'main' panicked at /home/USER/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rusb-0.9.3/src/context.rs:217:28:
Can't init Global usb context, error Other

In Windows everything works fine, but with Ubuntu am I stuck.

Maybe you try to do this inside docker? Actually this error came from libusb.

Thank you for the advice! The issue was that one should manually attach USB in Ubuntu.