ichi4096 / vivado-on-silicon-mac

Installs Vivado on M1/M2 macs
Creative Commons Zero v1.0 Universal
217 stars 26 forks source link

Open Launch_Vivado.app with non-default folder #20

Open gri11 opened 10 months ago

gri11 commented 10 months ago

Hello again 😄, My goal now is connect Vivado with Basys 3 Board via USB. I'm installed Vivado completed in folder name vivado-on-silicon-mac-main 3 I ran it. Got this error.

image

So, I use Launch_Vivado.app in broken installation folder name vivado-on-silicon-mac-main And got this error.

image

Current situation:

Connection

Is there anyway that I can solve these problem?

ichi4096 commented 10 months ago

Maybe there is an error because the path of the directory contains a space? Anyway, permission denied errors for the xvcd binary could possibly stem from you not allowing its execution in the Settings app, or because the file permissions aren't set correctly. Try chmod +x xvcd in a terminal.

The "device not found" errors are to be expected whenever the board isn't plugged in. When you do plug in the board, there is no success message and the errors aren't cleared. If the errors keep repeating, try lsusb in a terminal and see if your board is even picked up by your Mac.

gri11 commented 10 months ago

It could be true that my board didn't even get picked up by Mac. Is that the problem could happened from USB dongle. If that true, Is there a way I can fix this?

here is my lsusb result:

Bus 000 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub 
Bus 000 Device 001: ID 05e3:0610 Genesys Logic, Inc. USB2.1 Hub 
Bus 001 Device 001: ID 0781:55ae SanDisk Corporation Extreme 55AE  Serial: 323332354548343034303831
Bus 000 Device 000: ID 05e3:0626 Genesys Logic, Inc. USB 3.1 Bus 
Bus 000 Device 000: ID 0781:55ae SanDisk Corporation USB 3.1 Bus
dmendat commented 10 months ago

It's possible that the dongle isn't working well with the Mac? I've definitely had issues in the past with some USB dongles/hubs not working with embedded devices, for example.

ichi4096 commented 10 months ago

I could get it to work with a dongle, the problem was with the micro usb cables, since a lot of them only have the power wires and no data wires.

dmendat commented 10 months ago

Yes that's definitely another common issue.

gri11 commented 10 months ago

Oh I see, so I could try to connect my board with micro usb cable with power wires and data wires right? Thanks a lot!

ichi4096 commented 10 months ago

Yes. xvcd could only connect to your board if it shows up in lsusb.

gri11 commented 10 months ago

There're still error that existed when I already found the board in local machine:

image

The error: image Could be the problem because I install Vivado on external SSD?

ichi4096 commented 10 months ago

Try first plugging in the board, then check with lsusb to make sure it's connected properly (the "Future Technology Devices International" device) and then opening up Vivado. If that doesn't work, does the xvcd terminal window display error messages?

gri11 commented 10 months ago

Right now, this an error after I use openFPGALoader to load bitstring to the board bind: Address already in use

Screenshot 2566-09-05 at 8 31 12 PM
ichi4096 commented 10 months ago

What command did you use exactly? Also make sure that no instance of xvcd is running since it will make the board unavalailable to any other program.

gri11 commented 10 months ago

I use this command openFPGALoader -b basys3 main.bit # Loading in SRAM and openFPGALoader -b basys3 -f main.bit # Writing in flash

ichi4096 commented 10 months ago

Does the error persist when you stop xvcd and Vivado?

gri11 commented 10 months ago

No, when exited Vivado, xvcd will be exited too.

image
james-kollross commented 10 months ago

I'm having a very similar issue with getting the hardware manager to connect to my Basys 3. It shows up in lsusb and in System Information, albeit only if I connect it through a USB hub and not directly with a dongle.

image

lsusb result:

image
gri11 commented 9 months ago

@james-kollross For the workaround, I use openFPGALoader to load bitstream generated from Vivado.

ichi4096 commented 9 months ago

I'm rewriting the script such that the docker instance will be logged in an open terminal window while xvcd has a little window of it's own, indicating that it is running / connected.