Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Detect Dev Board Micro over USB #51

Open
Neonel21 opened this issue Jul 30, 2023 · 12 comments
Open

Cannot Detect Dev Board Micro over USB #51

Neonel21 opened this issue Jul 30, 2023 · 12 comments

Comments

@Neonel21
Copy link

Neonel21 commented Jul 30, 2023

Description

Hello!
I've just recently bought the Dev Board Micro by Google Coral and have little to no experience on it. As I was setting it up per the instructions from the website Google Coral Setup, I could not find the device listed whilst verification. It does not appear to be verified, and I cannot find it by running lsusb. For context, I am currently running Ubuntu version 22.04.2 on Oracle VM VirtualBox. Prior to this, I have had another Virtual Machine with the same version, in which I could list the dev board; however, with the current machine, I cannot.
I've tried to check whether the issue was on the Ubuntu version, or the VM VirtualBox; however, it does not appear to be so. I've also tried to check the cable and connecting to other device running Windows10 and Windows11, and yet the problem remains.
For further context, whenever I pop in the Dev Board Micro, I initally receive a sound of "USB Connected" notification, but that is immediatelly replaced by another sound of "USB Disconnected" notification. I've also tried checking the USB connection status through Windows Powershell Get-PnpDevice command on both Windows 10 and 11 computers. In Windows 11, the status is "Error", and in Windows 10, I cannot even view the Dev Board.
I would like to apologise for taking up your precious time. It would be appreciated If I could get help on this issue.

Click to expand!

Issue Type

Build/Install, Others

Operating System

Windows 10, Ubuntu

Coral Device

Dev Board Micro

Other Devices

No response

Programming Language

C++, Python 3.8

Relevant Log Output

No response

@cyborgdennett
Copy link

I have the same problem. Please tell me when you found out what to do.

@hpssjellis
Copy link

hpssjellis commented Sep 14, 2023

I have only had my board for 2 days but I have learnt:

  1. always push the middle button when connecting the usb cable to program the board, then after programming unplug and plug in the usb cable to run the program. The other methods do not seem to work.

On linux lsusb shows NXP when the middle button is pushed and Corel when the program runs. On Windows when the middle button is pushed the port does not show at all but still uploads code, when no button pushed the port shows up on windows.

I would assume your boards have bad code on them and needs to have good code programmed before anything works except lsusb to show the NXP statement.

By the way on windows using DOS or powerShell mode shows serial port but only when a program is ready to run.

The following is lsusb on Linux first showing the coral ready to run a program. The second lsusb shows the coral board ready to install a program, with the weird NXP Semiconductors SE blank RT Family

image

@cyborgdennett
Copy link

@hpssjellis how do you flash using windows? I tried with WSL but to no avail

@hpssjellis
Copy link

@cyborgdennett I havent tried WSL, but generally would not even expect it to work. The Arduino IDE does flash simple programs to the coral-micro. I have not had any success with the ML code yet. Trusting that the arduino IDE can find the port is a bit of a pain. Start off with just a regualr blink or serial monitor code first.

@hpssjellis
Copy link

@cyborgdennett I however cant seem to get serial read working at all, so I may have to swtich to a different board.

@cyborgdennett
Copy link

cyborgdennett commented Sep 18, 2023

@hpssjellis in the documentation it says you need an serial to USB cable, haven't tried it though.

@hpssjellis
Copy link

@hpssjellis in the documentation it says you need an serial to USB cable, haven't tried it though.

@cyborgdennett I remember seeing that and then things kind of worked so I ignored it. Thanks for reminding me. Would that help with WSL?

@cyborgdennett
Copy link

I don't think so.

@hpssjellis
Copy link

hpssjellis commented Sep 18, 2023

@cyborgdennett I will try WSL today. Got a good link for the setup? I haven't used it since it first came out and nothing I needed worked. Also one of my students suggested a virtualbox to setup linux on windows. Is that an option?

Looks like it is easy to install with

wsl --install

Did you install a specific distro I am going to try Ubuntu since that is what I have Coral-micro working with.

wsl --install -d Ubuntu-22.04

@cyborgdennett
Copy link

cyborgdennett commented Sep 18, 2023

I also was trying with ubuntu22. The main problem is that wsl has trouble with usb. You can download usbipd, as recommended by Microsoft, and then open the comport your coral micro is connected to, with
usbipd WSL attach --busid 1-2 -a in a administrator Powershell shell. which will connect Linux with the usb device over usb/IP. Then you will still get problems since the vidpid(usb address) of the coral micro changes on every part of its flashing procedure.

@hpssjellis
Copy link

@cyborgdennett . I tried setting WSL up on a school computer and it is not as easy as it should be. Seems the virtual environment is getting grumpy. Not sure why. If I get it working I will try your steps, but not really expecting it too work. I much prefer an old laptop that is really cheap and installing ubuntu?

@hpssjellis
Copy link

hpssjellis commented Sep 18, 2023

@cyborgdennett Things are getting interesting. WSL v1 had better com support.

Downgrading using

wsl --list --verbose
or
wsl -l -v
# Confirm the <distro_name>
wsl --set-version <distro-name> 1

change back by setting version 2

WSL v2 has a few hacks one is a tcp IP com port

microsoft/WSL#6692

WSL v2 is a real linux core with GPU support. What might be a work around is a batch file that switches versions to access the port to upload your code.

I do have WSL working on a different school computer, just trying the installation of coralmicro. I should have more testing done by tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants