My bootloader is working fine with CP on. I've obviously left TBLWRT and TBLRD enabled, so that the bootloader works. (I'm working with an 18F).
I ended up taking the bootloader.hex and appending the mainline.hex together (after stripping out the EOF line from the first hex file). It seems to work ok using it to program both in a single run.
If anyone finds a better way to do it, let me know.
Bookmarks