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

Fix wrong PinCount evaluation for FT232H #2116

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

holidayfun
Copy link
Contributor

@holidayfun holidayfun commented Aug 4, 2023

Currently it is not possible to open pins 8-15 on a FT232H board using the Ft232HGpio driver, because the pin count checked against is the pin count of the device, which is set to 8 instead of 16.

This is caused because the type of the device is checked, but the assignment of the pin count is actually the wrong way around, e.g. FT4232H is assigned 16 pins per channel (instead of 8) and both FT232H and FT2232H are assigned 8 pins per channel (instead of 16).

Microsoft Reviewers: Open in CodeFlow

FT4232H has 8 pins per channel, both FT2232H and FT232H have 16 pins per channel
@ghost ghost added the area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio label Aug 4, 2023
@holidayfun
Copy link
Contributor Author

@Ellerbach may you have a look at this fix?

Copy link
Member

@Ellerbach Ellerbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the fix!

@holidayfun
Copy link
Contributor Author

Is there anything i need to do to get the dotnet.iot check passed?

@raffaeler
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@holidayfun
Copy link
Contributor Author

The pipeline failed with the following error:

vstest.console process failed to connect to testhost process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout.

I guess thats not a code problem and another run may be necesarry?

@raffaeler
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@raffaeler
Copy link
Contributor

I guess thats not a code problem and another run may be necesarry?

There is probably a different issue in the pipeline right now, but I am not sure retrying will suffice.
Anyway, let's see what happens with this additional try.

@raffaeler raffaeler merged commit 4a91987 into dotnet:main Aug 5, 2023
9 checks passed
@holidayfun holidayfun deleted the fix-ftx232-pin-count branch August 7, 2023 08:24
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants