In source files where was originally
#include "P18F4455.INC"I changed to
#include "P18F4550.INC"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.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 ?
I downloaded the diolan-plus2 at github and started to read the documentation (ALL ABOUT THE DIOLAN PLUS BOOTLOADER), but the files that the pdf document refers to, are not at the zip folder that I downloaded from github, so I can't do the modifications. Please, has someone a tip or an adivice ?