USB HID problem with EASYPIC7

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
salahd
Posts: 24
Joined: 10 Mar 2015 18:07

USB HID problem with EASYPIC7

#1 Post by salahd » 10 May 2015 10:29

Hello everyone,
I have got my new EASYPIC7 board with Mikroc pro. I have a problem with running a HID device with PIC18F4550.
I want to try the HID Read Write interrupt example for ME , i programmed the original HEX file ( NOT RECOMPILING) in the PIC18f4550 , i placed the jumper J12 in the right (USB) position. but my PC not recognize the device.
I have an elitebook hp 6930p with WIN7 64 bits.
Any help please.
Best regards salah.
Attachments
HID Read Write Interrupt.rar
(13.92 KiB) Downloaded 152 times

keshena
Posts: 68
Joined: 07 Dec 2013 09:37
Location: South Africa
Contact:

Re: USB HID problem with EASYPIC7

#2 Post by keshena » 11 May 2015 10:56

Have you tried other examples and all of them are working correctly?
Free Microcontroller Tutorials & Projects for Hobbyists and students from beginners to advanced.
Website: https://www.studentcompanion.co.za/cate ... o-for-pic/
Youtube Tutorials: https://www.youtube.com/user/StudentCompanionSA

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: USB HID problem with EASYPIC7

#3 Post by Aleksandar.Mitrovic » 11 May 2015 14:21

Hi Salahd,

Can you please tell me which clock settings do you use for this PIC?

Also please take a look at this post:
http://www.mikroe.com/forum/viewtopic.p ... id#p256516

Best regards,
Aleksandar

paulfjujo
Posts: 1543
Joined: 24 Jun 2007 19:27
Location: 01800 St Maurice de Gourdans France
Contact:

Re: USB HID problem with EASYPIC7

#4 Post by paulfjujo » 11 May 2015 17:37

hello,


Could you confirm, or disagree
if the mikro bootloader must be installed on a StartUSB 18F2550
to be able to use HID terminal ?

I tested it, without mikro bootloader , without succes..
i reinstaled the bootloader,
then HID terminal was reconized ..

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: USB HID problem with EASYPIC7

#5 Post by Aleksandar.Mitrovic » 12 May 2015 10:10

Hi,

You should be able to use HID terminal without bootloader.

Only you need drivers and HID example for test.
I suggest you to update HID drivers in you Device Manager. Problem can be in Windows.

Best regards,
Aleksandar

salahd
Posts: 24
Joined: 10 Mar 2015 18:07

Re: USB HID problem with EASYPIC7

#6 Post by salahd » 12 May 2015 14:24

Hi
Thanks mr Aleksandar;
thanks mr keshena;
I have not powered my card, I thought that the USB is sufficient
now all is ok in simulation with PROTEUS and in real hardware.
But now I need a VB6 or Vb dot Net a basic application to communicate with the laptop to understand how to manage the interface or through the laptop.
Thanks a lot
Best regards
salah

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: USB HID problem with EASYPIC7

#7 Post by Aleksandar.Mitrovic » 12 May 2015 14:45

Hi Salah,

Your welcome.

Good luck with your project.

Best regards,
Aleksandar

paulfjujo
Posts: 1543
Joined: 24 Jun 2007 19:27
Location: 01800 St Maurice de Gourdans France
Contact:

Re: USB HID problem with EASYPIC7

#8 Post by paulfjujo » 12 May 2015 18:53

Hello,

:D Thank's for your answer
Aleksandar.Mitrovic wrote:Hi,
You should be able to use HID terminal without bootloader.
Youre are right ..
my probleme was config bit problem..
i used pickit3 ICSP link to retrive the Hex from my 18F2550
when working OK with Bootloader + Test HID terminal program
and i see tha config bit was not the same as mine ,in the HID terminal program..

It means bootloader Overwrite some config bit , or not allow to change some of them..
So, i copy the result comming from Pickit3 into a new config bits
via the Edit project ..and my HID terminal test.

I erased all the PIC , to remove the bootloader
and load HID Test program (*.hex) via ICSP Pickit3 link.
=> and get a good result..
Works OK , without bootloader .

P18F2550_Q8MHZ_48Mhz_Terminal_HDI.zip

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: USB HID problem with EASYPIC7

#9 Post by Aleksandar.Mitrovic » 13 May 2015 08:17

Hi Paul,

I'm glad that you make it work. :)

Regards,
Aleksandar

Post Reply

Return to “mikroC PRO for PIC General”