Forum > Other
LIBUSB
(1/1)
vanderley:
Hello, colleagues.
I am using Lazarus 1.6 on ubuntu mate 16.04 LTS.
The problem is as follows:
I am communicating through the USB port with libusb 1.0.9 with a PIC18F4550 microcontroller. Ok the communication works perfectly.
But I saw that there is a new version of libusb, which according to the site "libusb.info" the new version is libusb 1.0.21
I installed it according to the requested procedure.
Only this new version I can not compile in Lazarus displays error message.
Has a colleague already encountered this situation and how to proceed?
I'm waiting for the collaboration and thank you very much.
Forgive English, because I used google translator.
Thaddy:
What is the error?
- Is it a compile time error? If so, which one or which ones?
- Is it an error while linking (linker error)?
- Is it a runtime error? If so which one?
vanderley:
Hello.
I forgot to send the problem screen prints. Now I'm sending.
The problem both happens only by compiling or executing.
I read in the forum that to have access to USB port should use the following procedure
KERNEL == "hiddev [0-9]", SUBSYSTEM == "usb",
SYSFS {idProduct} == "2525", SYSFS {idVendor} == "04d8",
MODE == "0666"
If the MODE is "0666" it usually hangs the communication, I changed it to MODE = "0777", it rarely hangs now, I'm using libusb1.0.9
I followed all the procedures and requests for the installation of libusb1.0.21
Only that I installed on top of libusb1.0.9 I do not know if this could be what is causing the error messages. If a colleague confirms that it was successful, I will format the partition that is ubuntu Linux 16.04 LTS 64bit and perform a clean installation.
DonAlfredo:
Mmmmm, that does not look like pascal to me ... ;-)
Below, you can find a USB-HID library that was especially made for Microchip USB MCU's.
You could give it a try.
Works cross-platform.
https://github.com/LongDirtyAnimAlf/FPC-USB-HID
Navigation
[0] Message Index