Skip to content

Conversation

@aacuevas
Copy link
Collaborator

@aacuevas aacuevas commented Dec 17, 2025

  • libonidriver_ft600: uses newer ftdi driver on windows
  • libonidriver_ft600: Improved register transmission speed
  • libonidriver_ft600: Patch version bump to 1.0.4
  • liboni: Added new error to ONI to inform of bad configuration on controler
  • liboni: Minor version bump to 4.5.0
  • clroni: Minor version bump to 6.3.0

For the ECP5 board, requires firmware v2.0

- libonidriver_ft600: uses newer ftdi driver on windows
- libonidriver_ft600: Improved register transmission speed
- libonidriver_ft600: Patch version bump to 1.0.4
- liboni: Added new error to ONI to inform of bad configuration on controler
- liboni: Minor version bump to 4.5.0
- clroni: Minor version bump to 6.3.0
@aacuevas aacuevas requested a review from jonnew December 17, 2025 21:08
}
case ONI_EBADCONTROLLER :
{
return "ONI Controller is not compatible";
Copy link
Member

Choose a reason for hiding this comment

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

Not compatible with what? This version of the library?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is basically is meant to state "the driver translator can open a low level physical channel to the target hardware but something is not right"
For the ft600, for example, this happens when it can open a connection with a ft600 chip but it is not properly configured.

I thought we could throw this error, for example, if the hardware reported a non-compatible ONI spec. Although we could make a EBADONIVER or something like that for that specific case, it's not like we're gonna run out of error code space soon. But in this specific case, a hardware mismatch on the controller is what I meant. We can change the name of the error and definitely write a better error message.


#if defined _WIN32 || defined LINUX_ASYNC
FT_SetStreamPipe(ctx->ftHandle, FALSE, FALSE, pipe_in, ctx->inBlockSize);
//FT_SetStreamPipe(ctx->ftHandle, FALSE, FALSE, pipe_in, ctx->inBlockSize);
Copy link
Member

Choose a reason for hiding this comment

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

Do you mean to leave this?

return ONI_ESEEKFAILURE;
}
Sleep(1);
//Sleep(1);
Copy link
Member

Choose a reason for hiding this comment

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

Remove.

Sleep(10);
#if defined _WIN32 || defined LINUX_ASYNC
FT_ClearStreamPipe(ctx->ftHandle, FALSE, FALSE, pipe_in);
// FT_ClearStreamPipe(ctx->ftHandle, FALSE, FALSE, pipe_in);
Copy link
Member

Choose a reason for hiding this comment

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

Remove?

@aacuevas
Copy link
Collaborator Author

Yah, I mean to remove all the commented stuff, but I prefer to stress-test the changes, specially the transition from the stream stuff. I'll do a clean-up pass after that and squash the commits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants