Just doing a bit of digging in MPLAB at luchtime and I think I know why it was not working.
It seems the HID bootloader is a lot bigger than the MCHPUSB one. In MPLAB it uses 2040 bytes of program memory, compared with the 980 used by the MSCHUSB one.
In my PBP code I had this :
DEFINE RESET_ORG 800h
statement to jump over the end of the bootloader, but for the HID version I would need to make that RESET_ORG 1000h.
Like I said, I will try it when I get home as suddenly things make a lot more sense - I remember I was having issues with the program not working after I had bootloaded it, and then the bootloader failing - which I put down to me locking up the USB ports (which I also did).
Like I said, I love it, but it needs a lot of brain time !!
bill.




Bookmarks