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 build Analyzer for luna.gateware.platform.lambdaconcept:USB2SnifferPlatform due to missing power_a_port #168

Closed
whinis opened this issue May 7, 2022 · 3 comments
Labels
help wanted help from community wanted and appreciated

Comments

@whinis
Copy link

whinis commented May 7, 2022

Whenever I attempt to build for the USB2Sniffer I get the following error
amaranth.build.res.ResourceError: Resource power_a_port#0 does not exist
line 102 of the analyzer.py also suggest more issues due to

m.d.comb += [
            platform.request("power_a_port").o      .eq(0),
            platform.request("pass_through_vbus").o .eq(1),
        ]
@martinling
Copy link
Member

Those are signals that exist on the LUNA hardware platform, which tell it to let power pass between the target A and C ports and not supply its own power to the A port.

As I understand it, the USB2Sniffer hardware is always in that configuration, so as a quick fix you should be able to just delete that assignment block - though obviously it would be nicer to have a patch that handled this properly for the different platforms.

@whinis
Copy link
Author

whinis commented May 9, 2022

USB2Sniffer is not always in that configuration but instead uses jumpers to set the configuration. I could add a check for the platform but not sure what the nature of the check should be here.

@straithe straithe added question question from the community that is not technical support help wanted help from community wanted and appreciated and removed question question from the community that is not technical support labels Nov 9, 2022
@martinling
Copy link
Member

We've moved the analyzer gateware into the Cynthion repository as per #232. As such I'm going to close this issue, since the code is no longer part of the LUNA repo.

If folks want to port it to other platforms they're welcome to, but our development is going to be focused on Cynthion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted help from community wanted and appreciated
Projects
None yet
Development

No branches or pull requests

3 participants