PIC24FJ USB bootloader help

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
ferdinandcinzano
Posts: 18
Joined: 16 Feb 2018 15:39

PIC24FJ USB bootloader help

#1 Post by ferdinandcinzano » 08 Mar 2020 19:58

Hi,

How are you?
I'm struggling to get to work the example "USB HID Bootloader" with PIC24FJ256GB110. My hardware connection is the following:
Pic Schematic
Pic Schematic
PIC24FJ.jpg (260.87 KiB) Viewed 2284 times
microUSB connection
microUSB connection
Micro USB.jpg (63.5 KiB) Viewed 2284 times
External crystal (20Mhz)
External crystal (20Mhz)
External 20Mhz crystal.jpg (55.1 KiB) Viewed 2284 times
It doesn't matter if I use the external osc for the bootloader or if just end up using the FRC. I tried everything else around the hardware and works (I/O manage, remap pins, UART to PC, I2C, etc). And the wierdest thing around this is that the PC seems to ignore completely the USB cable connection.

I tested the D+ and D- connection and is acording to the schematic (D+ to D+ and D- to D-)

Can somebody give me a clue? I don't see what I'm doing wrong.

Thanks in advanced!!

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

Re: PIC24FJ USB bootloader help

#2 Post by filip » 27 Mar 2020 09:50

Hi,

Have you managed to get the bootloader working ?

Regards,
Filip.

ferdinandcinzano
Posts: 18
Joined: 16 Feb 2018 15:39

Re: PIC24FJ USB bootloader help

#3 Post by ferdinandcinzano » 28 Mar 2020 23:02

Hi,

No, I didn't. I still don't have a clue on what is wrong, so I'm using the programmer.. sadly

Regards!

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

Re: PIC24FJ USB bootloader help

#4 Post by filip » 31 Mar 2020 09:02

Hi,

Have you tried the basic USB HID example for this MCU :
\Examples\Internal MCU modules\PIC24FJ256GB110\HID_Read_Write_Polling\

You just need to modify the clock and configuration bits to suite your settings.

Regards,
Filip.

ferdinandcinzano
Posts: 18
Joined: 16 Feb 2018 15:39

Re: PIC24FJ USB bootloader help

#5 Post by ferdinandcinzano » 03 Apr 2020 00:02

Hi,

Yes I have and with the same result. Is like the device dind't exist... the PC USB bus does not detect a conection.

I was taking a look to the Mikromedia for PIC24, witch happens to use the same PIC, and found a difference with schematic. In the board you do a connection that I don't, the following:
1.jpg
1.jpg (30.87 KiB) Viewed 2033 times
2.jpg
2.jpg (53.8 KiB) Viewed 2033 times
I 'm not familiarized with USB, but Is it possible to be failing because of not connecting the Vbus as in the images?

Thank you.
Regards!

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”