> I have a customer who will be using Hitech C on a project, and I will > be writing a bootloader so they can load the compiled .hex files into > the product in production. > Any pointers on how to go about doing this (if possible) would be > appreciated Maybe I'm missing something here or you haven't seen the bootloader from HiTech. They provide source for both the PIC part and the PC end. The bootloader puts its own vector (?) in the first 3 locations and relocates what you send down as being at address 0,1 & 2. When the bootloader wants to run the application it jumps to the relocated instructions which ljmp to the rest of your code. You compile your application with a -ICD option and the top 256 bytes are protected. Take what they have provided and hack it around to suit your needs. Steve. ====================================================== Steve Baldwin Electronic Product Design TLA Microsystems Ltd Microcontroller Specialists PO Box 15-680, New Lynn http://www.tla.co.nz Auckland, New Zealand ph +64 9 820-2221 email: steveb@tla.co.nz fax +64 9 820-1929 ====================================================== -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's