PIC18F4550 device not found by the firmware updater software.
I followed the documentation on the http://usb-pic.org/usb-pic-bootloader
. I changed the project to be programmed to an PIC18F4550 and not a PIC18F4455 as it was originally written. So, I did the following changes on the bootloder code:
In source files where was originally
I changed to
On the Header files, I remove the file "P18F4455.INC" of the project and add the"P18F4550.INC instead, I downloaded it from here. The compilation succeed and I was able to program the bootloader into the PIC18F4550's flash. I used PIckit3 and MPLABV8 to do it.
I did not encrypt my application using the encoder, I just tried to write it to memory without encrypt it. So, I copied and paste my .hex file application to the bin folder where the fw_update is.
I found on the bootloader's project file usb_desc.inc that :
#define BOOTLOADER_VID 0x0000 ; MUST BE VALID Vendor ID
#define BOOTLOADER_PID 0x0000 ; MUST BE VALID Product ID
So, I opened the console and typed:
fw_update -e -w -v -vid 0x0000 -pid 0x0000 -ix example_encrypted.hex
The followed message appears:
U2IO flash erasing: FAILED.
Device is not found.
On the device manager of windows 10, It appears as a HID USB device but with a yellow exclamation.
Does someone have some advice or tip of what it is happening ?