Hello,
I'm using PIC32mx270f256b and I'm trying to work as host and read the files from a usb stick, I'm using the example provided by the host library. The problem is the usb stick isn't recognized by the pic, I don't enter in the '_USB_HOST_EVENT_DEVICE_CONNECTED' inside the 'EventHandler' function. I'm using a custom board with a 16 MHz crystal. My project and a schematic is attached.
Thanks
PIC32MX270 and USB Host
PIC32MX270 and USB Host
- Attachments
-
- Captura.PNG (87.62 KiB) Viewed 2214 times
-
- (11) USB HOST.rar
- (252.72 KiB) Downloaded 110 times
Re: PIC32MX270 and USB Host
Hi,
Did you set the clock properly ?
Regards,
Filip.
Did you set the clock properly ?
Regards,
Filip.
Re: PIC32MX270 and USB Host
I do, I have a project with a usb as device which works. In this project I use the same clock configuration as the usb as device.
If I try to turn on a led in defferent parts of the code, the led turns on inside the interrupt when the usb stick is connected, but the led doesn't turn on inside the EventHandler or USBHost_MSCApplication.
It is a reason why the pic I'm using is not in the default selection of the pic listed when I installed the library?, I had to manually select my pic in the list.
If I try to turn on a led in defferent parts of the code, the led turns on inside the interrupt when the usb stick is connected, but the led doesn't turn on inside the EventHandler or USBHost_MSCApplication.
It is a reason why the pic I'm using is not in the default selection of the pic listed when I installed the library?, I had to manually select my pic in the list.
Re: PIC32MX270 and USB Host
Hi,
I suppose this is the case for this MCU, I will speak to our developers and see if I there is a solution.
Regards,
Filip.
I suppose this is the case for this MCU, I will speak to our developers and see if I there is a solution.
Regards,
Filip.
Re: PIC32MX270 and USB Host
Hello,
Any updates?
Regards
Any updates?
Regards
Re: PIC32MX270 and USB Host
Hi,
Well, this library has not been tested for the PIC32mx270f256b (this is why it was not selected in the library package in the first place).
I will suggest our development team that they include this MCU for the next version of the library.
Regards,
Filip.
Well, this library has not been tested for the PIC32mx270f256b (this is why it was not selected in the library package in the first place).
I will suggest our development team that they include this MCU for the next version of the library.
Regards,
Filip.