Search found 61 matches

by szacpp
20 Jul 2018 17:24
Forum: mikroC PRO for PIC General
Topic: HID Bootloader is not working
Replies: 8
Views: 2278

Re: HID Bootloader is not working

Thanks filip for your response. I changed usb cable...also I compared user app USBdsc.c and Bootloader USBdsc.c both files have some differences... Like: user app USBdsc.c has USB_SELF_POWER = 0xC0 whereas Bootloader USBdsc.c has USB_SELF_POWER = 0x80 and user app USBdsc.c has USB_INTERRUPT = 1; whe...
by szacpp
19 Jul 2018 18:57
Forum: mikroC PRO for PIC General
Topic: HID Bootloader is not working
Replies: 8
Views: 2278

Re: HID Bootloader is not working

Hello filip, i had turned on usb voltage regulator... Today the bootloader is not working again. can it be usb cable fault? when i plug usb cable it fluctuates (or power low and normal) during plugin...then i pull out usb cable little bit from usb socket for stabilizing voltage. i can see voltage fl...
by szacpp
19 Jul 2018 18:40
Forum: mikroC PRO for PIC General
Topic: HID Bootloader VID & PID in user app
Replies: 2
Views: 1271

Re: HID Bootloader VID & PID in user app

thank you filip for response.
by szacpp
16 Jun 2018 11:56
Forum: mikroC PRO for PIC General
Topic: HID Bootloader is not working
Replies: 8
Views: 2278

Re: HID Bootloader is not working

Hello filip,
now i saw, There is USB Voltage ragulator option is disable in user app configuration whereas that option is enable in bootloader configuration...is that a problem?
by szacpp
16 Jun 2018 10:55
Forum: mikroC PRO for PIC General
Topic: Writing 32bit value to HID buffer
Replies: 4
Views: 1504

Re: Writing 32bit value to HID buffer

Thanks paulfjujo for your help and time. Problem solved!
paulfjujo wrote:hello,


maybe you need to reverse the bytes order

Intel or motorola format ?
by szacpp
15 Jun 2018 09:09
Forum: mikroC PRO for PIC General
Topic: USB HID Bootloader configuration
Replies: 2
Views: 931

Re: USB HID Bootloader configuration

filip wrote:Hi,

I believe you have raised similar question on the other topic, so we will continue there.

Regards,
Filip.
ok by the way i uploaded hid bootloader project zip did you check it?
by szacpp
15 Jun 2018 09:07
Forum: mikroC PRO for PIC General
Topic: Writing 32bit value to HID buffer
Replies: 4
Views: 1504

Re: Writing 32bit value to HID buffer

Thanks paulfjujo for your response. it is not working also. could you suggest another solution? hello, see built_in.h maybe this is working ( not tested) writebuff[14] = lo(counter); writebuff[15] = hi(counter); writebuff[16] = higher(counter); writebuff[17] = highest(counter);
by szacpp
14 Jun 2018 19:44
Forum: mikroC PRO for PIC General
Topic: Writing 32bit value to HID buffer
Replies: 4
Views: 1504

Writing 32bit value to HID buffer

Hello Everyone, I want to know how do i write 32 bit value to hid buffer here is my hid descriptor. 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 0x09, 0x04, // USAGE (Joystick) 0xa1, 0x01, // COLLECTION (Application) 0x09, 0x01, // USAGE (Pointer) 0xa1, 0x00, // COLLECTION (Physical) 0x05, 0x01, // U...
by szacpp
14 Jun 2018 16:48
Forum: mikroC PRO for PIC General
Topic: HID Bootloader is not working
Replies: 8
Views: 2278

Re: HID Bootloader is not working

Thank you filip for your response. i attached bootloader project included hex file.
filip wrote:Hi,

Which HEX file did you upload ? Can you attach it here ?
Did something happened during the upload which could lead to this ?

Regards,
Filip.
nothing happened during upload.
by szacpp
13 Jun 2018 15:10
Forum: mikroC PRO for PIC General
Topic: HID Bootloader is not working
Replies: 8
Views: 2278

HID Bootloader is not working

Hello everyone, I'm using pic18f4550 with 20mhz external crystal and internal mcu frequency is 48mhz. one week ago i flashed hid boot-loader into pic. today when i connected my device, it's boot-loader not working. i dont know why? I flashed boot-loader again it's working now. the problem had also o...
by szacpp
05 Jun 2018 09:26
Forum: mikroC PRO for PIC General
Topic: HID Bootloader VID & PID in user app
Replies: 2
Views: 1271

HID Bootloader VID & PID in user app

Hello everyone,

Please guide me. Can i use same VID & PID that i used in HID Bootloader, in user app?

Thanks
by szacpp
04 Jun 2018 19:58
Forum: mikroC PRO for PIC General
Topic: USB HID Bootloader configuration
Replies: 2
Views: 931

USB HID Bootloader configuration

Hello everyone,
I'm using 20mhz external crystal with pic18f4550. I want to flash hid bootloader. below is my bootloader configuration is it correct? and also want to know that should hid bootloader configuration be same as application configuration?
by szacpp
15 May 2018 19:29
Forum: mikroC PRO for PIC General
Topic: 7 Segment off LEDs Problem
Replies: 4
Views: 1712

Re: 7 Segment off LEDs Problem

here is the shift register's cascading code hexreader....the above code i'm using, was written for different pic, i converted that code for 18f4550. also i want to confirm that am i latching correct for multiple shift register? // SR74HC595 is a structure that has data for multiple registers void Sh...
by szacpp
15 May 2018 17:52
Forum: mikroC PRO for PIC General
Topic: 7 Segment off LEDs Problem
Replies: 4
Views: 1712

Re: 7 Segment off LEDs Problem

Thanks all for response. here are schematic and code. //Configure i/o ports where display is connected //below is segment data port #define SEVENSEG_TRIS TRISD #define SEVENSEG_PORT PORTD //below is disp select data port #define SEVENSEG_CMN_TRIS TRISB #define SEVENSEG_CMN_PORT PORTB unsigned char d...
by szacpp
14 May 2018 19:16
Forum: mikroC PRO for PIC General
Topic: 595 and 165 Writing and Reading problem
Replies: 10
Views: 3609

Re: 595 and 165 Writing and Reading problem

I think the issue is that SPI write causes SPI read simultaneously. I suspect that the solution might end up with combining read and write in one function. also i'm thinking the same. now the code is working on real hardware. but still proteus gives that warning that i mentioned in first post. I'm ...

Go to advanced search