-
Notifications
You must be signed in to change notification settings - Fork 59
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
kr return -536854449 error #15
Comments
What usb device are you using ? You should use bRequest, bmRequestType according to your usb device specs |
OK,Thanks for your reply. |
Hi, I am facing similar problems and found out this is the way to read kernel return errors.
Meaning of errors for system and subsystem are in this header: https://opensource.apple.com/source/xnu/xnu-201/iokit/IOKit/ |
I am trying to understand better how the IOKit for USB works but it is very hard to find documentation (I am trying to send a custom data packet to an USB sensor that appears as a STM32 Mass Storage device). I am looking for device docs but it would be nice to understand the name of the variables. eg: What does the b and bm stand for in bRequest and bmRequestType? Do you know? Or maybe there's some kind of documentation you can suggest me? |
|
First, Thanks to the good repo.
I use the demo to send a command to USB device.
But the kr is -536854449.
`func getStatus() throws -> [UInt8] {
//Getting device interface from our pointer
guard let deviceInterface = self.deviceInfo.deviceInterfacePtrPtr?.pointee?.pointee else {
throw STM32DeviceError.DeviceInterfaceNotFound
}
The text was updated successfully, but these errors were encountered: