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 occurred one month ago. pls guide me how do resolve the issue?
Here is my boot-loader configuration is it correct configuration? also i want to know that my user app configuration and boot-loader configuration should be same?
HID Bootloader is not working
HID Bootloader is not working
- Attachments
-
- sss.png (81.38 KiB) Viewed 2306 times
Re: HID Bootloader is not working
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.
Which HEX file did you upload ? Can you attach it here ?
Did something happened during the upload which could lead to this ?
Regards,
Filip.
Re: HID Bootloader is not working
Thank you filip for your response. i attached bootloader project included hex file.
nothing happened during upload.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.
- Attachments
-
- USB HID Bootloader.zip
- (552.57 KiB) Downloaded 77 times
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?
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?
Re: HID Bootloader is not working
Hi,
That should be turned on too, but this does not explain the issue that you have.
Just in case, turn this on and see if you experience the same problem again.
Regards,
Filip.
That should be turned on too, but this does not explain the issue that you have.
Just in case, turn this on and see if you experience the same problem again.
Regards,
Filip.
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 fluctuation because there is an led on circuit board. is voltage fluctuation (by cable) corrupting bootloader?
Thanks.
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 fluctuation because there is an led on circuit board. is voltage fluctuation (by cable) corrupting bootloader?
Thanks.
Re: HID Bootloader is not working
Hi,
This can explain the issue, try changing the cable and see it this helps.
Regards,
Filip.
This can explain the issue, try changing the cable and see it this helps.
Regards,
Filip.
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; whereas Bootloader USBdsc.c has USB_INTERRUPT = 0;
Is that normal?
also My user app's used ROM(bytes) are 23310 and HEAP RAM(bytes) are 160...
and bootloader used ROM is 6242 bytes. using pic18f4550;
is it possible that my user app has huge size causing bootloader corrupt?
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; whereas Bootloader USBdsc.c has USB_INTERRUPT = 0;
Is that normal?
also My user app's used ROM(bytes) are 23310 and HEAP RAM(bytes) are 160...
and bootloader used ROM is 6242 bytes. using pic18f4550;
is it possible that my user app has huge size causing bootloader corrupt?
Re: HID Bootloader is not working
Hi.
I'm also dealing with this problem on 18F4550. I tried to test a simple circuit, default USB code and it didn't work.
I posted a topic a few days ago, I'm wondering that they are working in my solution.
Take a look in my issue: viewtopic.php?f=88&t=72571
I'm also dealing with this problem on 18F4550. I tried to test a simple circuit, default USB code and it didn't work.
I posted a topic a few days ago, I'm wondering that they are working in my solution.
Take a look in my issue: viewtopic.php?f=88&t=72571