I've modified the USB bootloader code of microchip for letting it work on the 18F2550. Within my application there is only one button connected to pin 1. When this button is pressed during power-up it will come in the bootloader mode. The LED on RA4 will start to blink. After the boot procedure, my program will start with an other Vendor_id and Product_id then the one of the bootloader. Everything works fine however not for the push button. When I press the pushbutten and after releasing it the USB connection will drop. It will not come in the bootloader proces as I expected because of that I think it will come at position 800h of the program memory. This is not wat I expected because the MCLRE = OFF.

An other thing. I have to continue press the pushbutton during the bootloader proces. What do I have to change or to add in de C code that when I press the pushbutton during power on that I can release the button and that it will stay in bootloader mode.

Regards,
Ronald.