It seems to me that my problem can not be solved by hexmate and some other methods here. There are indeed some overlapping of the hex file. Looks like Daniel's method is easier now. I will try Jose Da Silva program as well. C:\Myprog\Hitech\hexmatev176>hexmate boot.hex demo.hex -Ofsusb.hex (944) data conflict at address 0h between boot.hex and demo.hex Regards, Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist