Quote Originally Posted by bcd View Post
No problems here with the HID bootloader.

I did have some issues with fuses early on, but after that it all worked well.

Do you have the DEFINE use_loader 1 and DEFINE ORG $0800 in your code to hop over the bootloader ??

Did you recompile the source code or just use the .HEX file from Microchip ?
If you use the Verify button in the GUI does it pass ?
Try manually doing the ERASE, Program and Verify cycle.

I just use the Program option and it just seems to work - mind you I have never tried reading it back. From looking at the bootloader source I think it might code protect the boot code and this might stop your programmer reading all the memory - let me go out to the shed and see if I can read a programmed chip and see what I get...

Bill.
Thanks Bill

I do have DEFINE LOADER_USED 1, however I do not have DEFINE ORG. This is because I read somewhere that PICbasic will relocate your code after the bootloader to $1000. The size of the bootloader seems to be $fe6, so it is just under 1000. I tried DEFINE ORG $1000, but without success, the compile (PBP v2.50b via Microcode Studio) will produce error 118 if I include DEFINE ORG.
The testprog in itself does work just perfectly when programmed alone with Melabs U2 programmer.

I can Erase, Verify and it seems to me that I can do everything with v2.2 and everything seems to work, but only seems to work. It answers to Erase ok, as well as to the Verify.However, there is only the bootloader, not anything else. One can see, with the U2 programmer, meProg and with Read PIC, in the Memory window that there is not more code than $fe6 that is the same amount as the bootloader.
So what is v2.2, a pathological lier?

I use the 4550.hex from Microchip, I do not recompile it, because I do not have the C or C++ compiler.

In a matter of fact the testprog is originally generated by easyHID there is just a few lines more to toggle some legs etc so that you can verify that your PIC is living...