PIC32MX270 and USB Host

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
JairHdez
Posts: 16
Joined: 24 Feb 2017 19:25

PIC32MX270 and USB Host

#1 Post by JairHdez » 14 May 2018 21:00

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
Attachments
Captura.PNG
Captura.PNG (87.62 KiB) Viewed 2214 times
(11) USB HOST.rar
(252.72 KiB) Downloaded 110 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC32MX270 and USB Host

#2 Post by filip » 18 May 2018 15:33

Hi,

Did you set the clock properly ?

Regards,
Filip.

JairHdez
Posts: 16
Joined: 24 Feb 2017 19:25

Re: PIC32MX270 and USB Host

#3 Post by JairHdez » 18 May 2018 17:31

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.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC32MX270 and USB Host

#4 Post by filip » 21 May 2018 08:51

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.

JairHdez
Posts: 16
Joined: 24 Feb 2017 19:25

Re: PIC32MX270 and USB Host

#5 Post by JairHdez » 23 May 2018 15:30

Hello,
Any updates?
Regards

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC32MX270 and USB Host

#6 Post by filip » 24 May 2018 13:37

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.

Post Reply

Return to “mikroC PRO for PIC32 General”